much101141

Untitled

Apr 21st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3. class student
  4. {
  5. private:int age;
  6. string name;
  7. public:student(string="Muchu",int=18);
  8. bool operator==(student);
  9.  
  10.  
  11. }
  12. student::student(string n,int m)
  13. {
  14. name=n;
  15. age=m;
  16. }
  17. bool operator==(student &s)
  18. {
  19. return(age==s.age&&s.name==name);
  20. }
  21. int main()
  22. {
  23. student a;
  24. cout<<"Much"<<endl;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment