Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite0
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++
1 Réponse
+ 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