2
出於某種原因,當我試圖編譯我的.cs使用Visual Studio命令提示符文件到一個.dll不變錯誤,我在試圖編譯由於某種原因,得到new line constant error
。C#換行後試圖編譯
這不是+ 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";
}
}
嘿感謝,哇,我簡直不敢相信我忘了這一點。在其它代碼示例我張貼我已經忘了,但沒有人提到這個問題,所以我認爲這是確定:) 謝謝! – Qcom 2010-09-11 05:58:50
語法高亮是有很大的幫助發現這種錯誤。 – 2010-09-11 07:38:52