小编use*_*068的帖子

我的PHP代码在哪里出错?

".{$行[ '成员名称']}.';?>

";?>

解析错误:语法错误,意外T_STRING,期待','或';' 在C:\ xampp\htdocs\home - 第141行复制\ membercopy.php

我真的不知道哪里出了问题.请帮忙,

php

0
推荐指数
1
解决办法
214
查看次数

LinkedList类的removeFirst和addLast方法是Unknown

我在C#中的代码有问题.如果我单击编译器按钮,我会收到以下错误

' System.Collections.Generic.LinkedList<int?>'不包含'removeFirst'的定义,并且没有扩展方法'removeFirst'接受类型' System.Collections.Generic.LinkedList<int?>' 的第一个参数可以找到(你是否缺少using指令或汇编引用?).

' System.Collections.Generic.LinkedList<Hanoi_tower.Sol>'不包含'addLast'的定义,并且没有扩展方法'addLast'接受类型' System.Collections.Generic.LinkedList<Hanoi_tower.Sol>' 的第一个参数可以找到(你是否缺少using指令或汇编引用?)

这是我的计划

using System.;

using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Hanoi_tower
{
   public class Sol
    {

public LinkedList<int?> tower1 = new LinkedList<int?>();
   public LinkedList<int?> tower2 =new LinkedList<int?>();
   public LinkedList<int?> tower3 =new LinkedList<int?>();
   public int depth;

   public LinkedList<Sol> neighbors;

    public Sol(LinkedList<int?> tower1, LinkedList<int?> tower2, LinkedList<int?> tower3)
    {
        this.tower1 = tower1;
        this.tower2 = tower2;
        this.tower3 = tower3;

        neighbors = new LinkedList<Sol>();
    }

    public virtual void getneighbors()
    {

        Sol …
Run Code Online (Sandbox Code Playgroud)

c#

0
推荐指数
2
解决办法
1302
查看次数

标签 统计

c# ×1

php ×1