Posted By

woofeR on 02/15/09


Tagged

get basic display set cpp avarage


Versions (?)

GradeBook Driver (main)


 / Published in: C++
 

  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  

You need to login to post a comment.