#include // you want to assign a unique id number to each student in a class // in this case if we don't know the number of students in the class apriori // then we can create an array on the fly to accommodate this. int main(void) { int number; // this is the number of students cout << "enter the number of students in the class " << endl; cin >> number; int *student_id = new int[number+1]; // dynamic allocation student_id [0] = 10393430; student_id [1] = 5465454; //etc. etc.. delete [] student_id; // finally de-allocate memory return 0; }