看板 C_Sharp 關於我們 聯絡資訊
如題 我在 C# program 中寫了這樣 string bstring = new string("my code"); 這樣為什麼 compile 不過阿.... 我不了解 compiler 給我 error message 的意思.... string constructor 不是有個 string (char *) 嗎? 謝謝指教 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.138.17.251
MRjk:CHAR*跟STRING不一樣 11/11 23:19
holybible:C# 想 new string 直接 assign value 即可 11/12 00:58
holybible:string bstring = "my code"; 11/12 00:58
retrash:謝謝 <(_ _)> 11/12 01:06