I don't want to create another vector.. I want to use the one I already created (header file), inside the main file in the function "double Grade::gpa() const".
Although my code works, obviously...
Type: Posts; User: xforevertink
I don't want to create another vector.. I want to use the one I already created (header file), inside the main file in the function "double Grade::gpa() const".
Although my code works, obviously...
Why is it in a form of a question? I was asking how I call the vector (in header file) inside the class Course, in the main function.
Are you trying to say that I should create a string variable with the course name?
Note. I'm not asking you guys to do the assignment for me. I'm just stuck in a wall right now and would appreciate how to get out of it. Thanks!
Assignment: implement a 3 different classes [student, course, grade] and have the code calculate the total number of units the student is taking and calculate the gpa.
So far, my code is...