Qco*_*com 2 c# compiler-construction compilation
出于某种原因,当我尝试使用Visual Studio命令提示符将.cs文件编译为.dll时,我会new line constant error因某种原因尝试编译.
之后不喜欢分号+ feet".
知道为什么吗?
这是我的代码:
/* A simple C# class! */
public class Tree
{
public int height = 0;
public void Grow(int h)
{
height += h;
}
public string Message()
{
return "The height of tree1 is:<br/>" + tree1.height + feet";
}
}
Run Code Online (Sandbox Code Playgroud)
你需要另一个"脚前
public string Message()
{
return "The height of tree1 is:<br/>" + tree1.height + "feet";
}
Run Code Online (Sandbox Code Playgroud)
编辑:实际上是在抱怨以";"开头的最后一个字符串没有终止.
| 归档时间: |
|
| 查看次数: |
6845 次 |
| 最近记录: |