討論串[問題] 將string轉成int輸出
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓3(3推 0噓 8→)留言11則,0人參與, 最新作者ghayen (給10班全體:教練感謝你們)時間11年前 (2012/09/04 22:49), 編輯資訊
2
0
1
內容預覽:
開發平台(Platform): (Ex: VC++, GCC, Linux, ...). C++. 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...). STL. 問題(Question):. 小弟我想將IP Address (type std::string )轉
(還有178個字)

推噓2(2推 0噓 1→)留言3則,0人參與, 最新作者dirkc (Dirk)時間11年前 (2012/09/04 23:48), 編輯資訊
0
0
2
內容預覽:
我偷了inet_pton4的原始程式碼 ;). http://ideone.com/bdqk1. 回到原本的問題:int可以用,思考ipv4是用4 bytes儲存的即可知。. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 96.44.189.101.

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者pziyout (pziyout)時間11年前 (2012/09/09 12:41), 編輯資訊
0
0
0
內容預覽:
標準的輸出入題目:. #include <sstream>. istringstream istr("140.115.100.200") ;. char ch ;. int n ;. while ( istr ) {. if ( istr >> n ) {. cout << n ;. } else
(還有430個字)
首頁
上一頁
1
下一頁
尾頁