dimanche 17 avril 2022

How to scan several strings with spaces? [duplicate]

I want to scan words separated with spaces and written on several lines. I don't know the amount of words in advance. And I want to create std::vector of std::string. How to define the end of an input?

enter image description here

Aucun commentaire:

Enregistrer un commentaire