Advertisement
Guest User

Untitled

a guest
Nov 30th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.69 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6.  
  7. /*
  8.  * File:   Pile.h
  9.  * Author: npods
  10.  *
  11.  * Created on November 28, 2018, 4:33 PM
  12.  */
  13.  
  14. #ifndef PILE_H
  15. #define PILE_H
  16. #include <vector>
  17. #include "card.h"
  18.  
  19. class Pile
  20. {
  21. protected:
  22.     vector<Card> p;
  23.    
  24. public:
  25.    
  26.     Pile();
  27.    
  28.     Card dealCard();
  29.     int getCount() const;
  30.     void shuffle();
  31.     void clear();
  32.     Pile operator + (const Card& c) const;
  33.     Pile operator + (Pile& b);
  34.     friend ostream& operator << (ostream& out, const Pile& b);
  35.  
  36. };
  37.  
  38. #endif /* PILE_H */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement