討論串[問題] 請問以空白為依據抓字串?
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者HuangTzHuan時間16年前 (2009/03/28 19:39), 編輯資訊
0
0
0
內容預覽:
#include <iostream>. #include <iterator>. #include <string>. #include <vector>. #include <algorithm>. vector<string> strings;. copy(. istream_iterator
(還有26個字)

推噓4(4推 0噓 4→)留言8則,0人參與, 最新作者liu2007 (薯)時間16年前 (2009/03/28 16:38), 編輯資訊
0
0
0
內容預覽:
我記得JAVA有這個功能. 而且每當next的時候. 它會跳過空白鍵. 它會自動幫你抓下一個單字. 讀入一個文字檔. This is my book. My name is xxx.. 我想要用C++去抓每一個單字儲存到一個陣列. 變成. string0 = "This". string1 = "i
(還有38個字)
首頁
上一頁
1
下一頁
尾頁