Reading from a File into a Vector of a Class

Channel:
Subscribers:
2,640
Published on ● Video Link: https://www.youtube.com/watch?v=DIM01waMKZk



Duration: 1:11:49
757 views
15


A few really important tools to help with your homework here:


Using getline to grab a whole line, then stringstream and getline to split it by column into each data field, then using stoi (or alternatives) to convert to ints when necessary.







Tags:
csci 40
c++
fstreams
string streams
sstreams
i/o
reading from disk
vectors of classes