So I have this program where I'm supposed to change all arrays into vectors. The program takes test values and assigns grades for them. The only problem is i've tried to change them into vectors, but I'm coming up with all sorts of errors, so here is some code with the array and the vector part is what I've tried to do.
Code:
char grades[] = {'A', 'B', 'C', 'D', 'E'}; vector<char> grades; //['A', 'B', 'C', 'D', 'E']; int scores[5]={0}; vector<int> scores; scores[index++] = aScore; // I don't have a clue how to change this to a vector
Comment