1 2 3 4 | string str( "3.14" ); istringstream iss(str); float f; iss >> f; |
1 2 3 4 5 6 7 8 9 10 11 | #include <sstream> void main() { istringstream s( "hello 3.13 123" ); string name; float f; int i; s>>name>>f>>i; cout<<f<<name<<i<<endl; } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | std::istringstream issList(response_str); std::string List; while (getline(issList, List, ':' )) { //한번더 토큰 std::istringstream lastissList(List); std::string lastList; while (getline(lastissList, lastList, ',' )) { if (lastList.compare( "EOF\n" )&& lastList.compare( "EOF\r\n" )) //appDelegate->g_AMailDataInfo.push_back(lastList); } } |
Designed by sketchbooks.co.kr / sketchbook5 board skin
Sketchbook5, 스케치북5
Sketchbook5, 스케치북5
Sketchbook5, 스케치북5
Sketchbook5, 스케치북5