How to read in a text file into a vector of a class
问题 I need to read in lines from a given text file into a vector of a class of strings. I have this so far but I cannot get them into the vector. I am trying to create a while loop to read in each line of the text file input by the user. I've modified it from the last time, but all it does is read in one thing at a time, splitting Las and Vegas. I also need to push the information from my text file into my Flight vector. #include "sort.h" #include "flight.h" #include "std_lib_facilities_4.h"