Guest User

Untitled

a guest
Nov 18th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. class GradeBook
  6. {
  7. private:
  8. int pi(int);
  9. public:
  10. inline int displaymessage(int);
  11. };
  12. int GradeBook::pi(int a)
  13. {
  14. return a+=5;
  15. }
  16. inline int GradeBook::displaymessage(int a)
  17. {
  18. return pi(a);
  19. }
  20. int main()
  21. {
  22. int a = 10;
  23. GradeBook wks;
  24. cout << wks.displaymessage(a) << endl;
  25. return 0;
  26. }
Add Comment
Please, Sign In to add comment