stringstream::operator>>(string)
? that’s where you need to look at.
like this:
istringstream str("no reason");
string oneword = "";
str >> oneword;
1
solved How to make it only read ONE word in C++ [closed]
stringstream::operator>>(string)
? that’s where you need to look at.
like this:
istringstream str("no reason");
string oneword = "";
str >> oneword;
1
solved How to make it only read ONE word in C++ [closed]