I\'m trying to figure out how could I parse this string using \"sstream\" and C++
sstream
The format of it is: \"string,int,int\".
I need to be able to ass
The C++ String Toolkit Library (Strtk) has the following solution to your problem:
int main() { std::string data("127.0.0.1,12,324"); string someString; int aNumber; int bNumber; strtk::parse(data,",",someString,aNumber,bNumber); return 0; }
More examples can be found Here