GradeBook Driver (main)


/ Published in: C++
Save to your folder(s)



Copy this code and paste it in your HTML
  1. #include <cstdlib>
  2. #include <iostream>
  3. #include "GradeBook.h"
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. int cNo;
  10. cout << "enter the course code" << endl;
  11. cin >> cNo;
  12. GradeBook G;
  13. G.setCourseNo(210);
  14. G.displayMessage(cNo);
  15. G.displayMessage();
  16. cout << "course avarage is " << G.determineCourseAverage() << endl;
  17.  
  18. //for dev-c++ bug
  19. int finishHim;
  20. cin >> finishHim;
  21. return 0;
  22. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.