0
How to input a string as a sentence with a space separating the words and then split the words of the string in c++???
C++
2 Respostas
+ 5
Use std::stringstream if you just want to split into words
http://www.cplusplus.com/reference/sstream/stringstream/
Example:
https://code.sololearn.com/cONOoTGOXehk/?ref=app