1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
//#ifndef CARD_H
//#define CARD_H
#include <iostream>
#include <string>
#include <algorithm>
#include <ctime>
#include <vector>
using namespace std;
class Card
{
public:
enum rank{Ace=1,Two,Three,Four,Five,Six,Seven,Eight,Nine,Ten,Jack,Queen,King};
enum suit{Clubs,Diamonds,Hearts,Spades};
friend ostream &operator<<(ostream &os, const Card &aCard);
Card();
Card(rank r, suit s, bool ifu);
int getValue() const;
void Flip();
~Card();
private:
bool isFaceUp;
rank Rank;
suit Suit;
};
//#endif
|