討論串[問題] 如何讀取txt檔內特定資料
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓3(3推 0噓 7→)留言10則,0人參與, 最新作者ouynln (示山)時間7年前 (2016/10/19 14:24), 7年前編輯資訊
1
0
0
內容預覽:
*[36m開發平台(Platform): Win 10. 編譯器(Ex: GCC, clang, VC++...)+目標環境(跟開發平台不同的話需列出). VC++. 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...). 問題(Question): 如何將txt檔內
(還有602個字)

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者godspeedlee (妳,我可以)時間7年前 (2016/10/19 23:39), 編輯資訊
0
0
2
內容預覽:
用 two pass 的方式處理. 1.. ifstream(file_name, ios_base::binary);. vector<string> lines;. string s;. while(getline(ifs, s)). lines.push_back(s);. 2.. for(s
(還有932個字)
首頁
上一頁
1
下一頁
尾頁