作者popo4231 (小泰)
看板EE_DSnP
標題[問題] 仍然不能從string-> int
時間Thu Oct 18 13:31:03 2007
getline(cin,str);
char* strChar=str.c_str();
30 invalid conversion from `const char*' to `char*'
會無法compile
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.241.177
1F:推 ric2k1:Uh, please use "const char* strChar = str.c_str();" 10/18 15:25