1234567891011121314151617181920
#include <iostream> #include <fstream> #include <vector> using namespace std; int main() { int i; vector<int> v; fstream file; file.open("grades.txt"); while (file >> i) { v.push_back(i); } cout << v[0]; return 0; }