Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include "card.h"
- #include "Pile.h"
- #include "Deck.h"
- #include <ctime>
- using namespace std;
- int main()
- {
- srand(time(NULL));
- Card a(4, 'h');
- Card b(1, 'd');
- Card c(9, 's');
- Card d(12, 'C');
- Card e(13, 's');
- Card f(a);
- Card g(4, 'c');
- cout << c << endl;
- c.setCard(5, 'd');
- cout << c << endl;
- cout << d << endl;
- cout << a.getRank() << endl;
- cout << b.getRank() << endl;
- cout << (a == b) << endl;
- cout << (a == g) << endl;
- cout << (b > a) << endl;
- cout << (a > b) << endl;
- Pile myPile;
- myPile = myPile + a;
- myPile = myPile + b;
- myPile = myPile + c;
- myPile = myPile + d;
- myPile = myPile + e;
- myPile = myPile + f;
- myPile = myPile + g;
- cout << "--------------" << endl;
- cout << myPile.getCount() << endl;
- cout << myPile << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement