[問題] string的assignment
開發平台(Platform): Code::Blocks
額外使用到的函數庫(Library Used): NO
問題(Question):為什麼cout s2這個string,所顯示的會是空白呢?
餵入的資料(Input):string s1("Yes, we can!");
預期的正確結果(Expected Output):Yes we can
錯誤結果(Wrong Output):顯示出來的是空白
程式碼(Code):(請善用置底文網頁, 記得排版)
http://ideone.com/Ww8rl
補充說明(Supplement):
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.110.101.31
推
03/07 12:35, , 1F
03/07 12:35, 1F
→
03/07 12:45, , 2F
03/07 12:45, 2F
推
03/07 13:19, , 3F
03/07 13:19, 3F
→
03/07 14:31, , 4F
03/07 14:31, 4F
→
03/07 14:31, , 5F
03/07 14:31, 5F
→
03/07 14:51, , 6F
03/07 14:51, 6F
→
03/07 15:58, , 7F
03/07 15:58, 7F
→
03/07 17:00, , 8F
03/07 17:00, 8F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章