okay, the printPrereqs looks better now. Thanks you.
Still having trouble with the setPrereqs, not sure if it's just me, but I can't seem to get it to work.
cause in the Main.cpp, there is a code that reads
csA150.setPrereqs(prereqs, 3);
prereqs being the array and 3 being the number of elements in the array.
and then i have a vector<int> prereq.
I think I am suppose to set the values of the array into the vector
and the it gets printed out normally in the printPrereqs.
The only problem is that I can't seem to get it to work like that
This is currently my output now:
**************************************************
TESTING CourseType CLass
**************************************************
CS A0 - No name assigned (0.00 units)
CS A150 - C++ Programming 1 (4.00 units)
CS A250 - C++ Programming 2 (4.00 units)
**************************************************
TESTING Course Class
**************************************************
CS A0 - No name assigned (0.00 units, not transferable)
CS A150 - CS A150 - C++ Programming 1 (4.00 units, transferable)
CS A150 - Prerequisites:
CS A250 - C++ Programming 2 (4.00 units)
CS A250 - Prerequisites: CS A150
|
The only part I am missing is the Prerequisites part after it states C++ Programming 1