If I have this vector in the private portion of my class I have:
and I have this in my main() function:Code:vector <int> numbers;
and I get an error on the push_back line. The error reads:Code:ifstream in_file; in_file.open("numbers.dat"); if (in_file.fail()) { cout << "Failed to open file." << endl; exit(1); } while (in_file >> next) { numbers.push_back[next]; next++; } in_file.close();I don't really see anything wrong with this...what can I do to fix it?! Thanks for the help!expected primary-expression before '.' token