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 29 30 31 32 33 34 35 36 37
|
#ifndef CARDS_H
#define CARDS_H
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
using namespace std;
enum suit_t{nad =0, clubs,diamond,heart,spade};
enum rank_t{nad1 =0,one, two,three,four,five,six,seven,eight,nine,ten,jack,queen,king,ace};
class Card
{
public:
Card();
Card(suit_t s, rank_t r);
int getvalue();
suit_t getsuit();
rank_t getrank();
string getsuitname();
string getrankname();
void setsuit(suit_t suit);
void setrank(rank_t rank);
private:
suit_t mysuit ;
rank_t myrank;
};
#endif
|