作者retrash ()
看板C_Sharp
标题[问题] 请问 string 的 constructor
时间Sun Nov 11 23:01:06 2007
如题
我在 C# program 中写了这样
string bstring = new string("my code");
这样为什麽 compile 不过阿....
我不了解 compiler 给我 error message 的意思....
string constructor 不是有个 string (char *) 吗?
谢谢指教
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.138.17.251
1F:推 MRjk:CHAR*跟STRING不一样 11/11 23:19
2F:推 holybible:C# 想 new string 直接 assign value 即可 11/12 00:58
3F:→ holybible:string bstring = "my code"; 11/12 00:58
4F:推 retrash:谢谢 <(_ _)> 11/12 01:06