Advertisement
Guest User

Untitled

a guest
Nov 30th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.52 KB | None | 0 0
  1. #ifndef CARD_H
  2. #define CARD_H
  3.  
  4. #include <string>
  5. #include <iostream>
  6. using namespace std;
  7.  
  8. class Card
  9. {
  10. private:
  11.     int r;      
  12.     char s;
  13.    
  14. public:
  15.    
  16.     Card();
  17.     Card(int r, char s); //parameterized constructor
  18.     Card(const Card& old);     //copy constructor
  19.    
  20.     void setCard(int r, char s);
  21.     int getRank();
  22.     bool operator ==(const Card c) const;
  23.     bool operator >(const Card c) const;
  24.     friend ostream& operator << (ostream& out, const Card c);
  25.    
  26. };
  27.  
  28.  
  29.  
  30. #endif /* CARD_H */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement