samedi 5 août 2017

Read from text file into a vector

I need to read a txt file and put into a vector in a specific way in C++. I need to read the first number and it will be vec[0] then skip the space and read word which will be vec[1], skip space etc. I tried different ways and it reads either everything at once and puts in vec[0] or by characters.

Aucun commentaire:

Enregistrer un commentaire