1234567891011
void uploadData(vector<weatherData> &w) { ifstream weatherFile("finalc++.csv"); if(weatherFile.bad()) { cout << "Error trying to read the file." << endl; return; } weatherFile >> w; }
while
weatherData
push_back( name_of_temp_object )