推 AlanLee76083:要先宣告 string myname 10/08 23:03
推 INsoarDEEP:呃...宣告字串要用什麼符號呢? 10/08 23:17
推 AlanLee76083:#include<string> 10/08 23:23
推 INsoarDEEP:還是COMPILE錯誤阿...OTZ 10/08 23:32
推 ilway25:你拿CD中的檔案compile & 比較一下看看 10/08 23:39
推 ric2k1:It's will be easier if you can post the complete code 10/09 00:38
→ ric2k1:and the error message... 10/09 00:39
※ 編輯: INsoarDEEP 來自: 140.112.236.234 (10/09 17:07)
推 INsoarDEEP:已經加上程式碼了,煩請各位指點一下,感謝! 10/09 17:07
推 timrau:getline(cin, string myname) -> getline(cin, myname) 10/09 23:40
→ timrau:sayhello.function1(string myname)也是把string拿掉 10/09 23:41