12345678
int x[]; int y[]; ifstream grades; grades.open("grades.txt"); getline(grades, line1);
123456
int size = stoi(line1);//Presuming you get size of array from a file /* or just grades >> size; */ int* x = new int[size]; x[0] = 1;//use array as you want