#include #include using namespace std; int main() { string input="56.5,54.32"; stringstream ss( input); string token; while( getline( ss, token, ',' ) ) { cout << token << endl; double info=atof(token.c_str()); cout << info << endl; } }