【发布时间】:2010-09-11 05:29:10
【问题描述】:
由于某种原因,当我尝试使用 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";
}
}
【问题讨论】:
标签: c# compiler-construction compilation