How do I insert the structs?

I have to put this into a struct and I'm confused on what to do. This is my code so far...

#include <iostream>
#include <string>
#include <fstream>
using namespace std;

// this is part A
struct course {
string name;
int callNum;
int credits;
char grade;
};


int main() {
int size;
cout << "Number of students: ";
cin >> size;
double *classList = new double[size];
// this is part b
for (int i = 0; i < size; ++i) {
classList[i] = 0.0;
}
// this is part c
if (size > 31) {
int student = classList[31];
}
// this is part d
if (size > 10) {
classList[10] += 0.75;
}
return 0;
}
You seem to have forgotten the instructions OP. Also, code tags.
Topic archived. No new replies allowed.