summaryrefslogtreecommitdiffstats
path: root/card.h
blob: 8703d05983d4b54c1ef2ceb93b0538d0fb6600a0 (plain)
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
#ifndef _CARD_H_
#define _CARD_H_

#include <iostream>
#include <string>

using std::string;
using std::cout;
using std::endl;

enum Suit { Undef = 0, Clubs, Diamond, Hearts, Spades };

class Card
{
    private:
        /* card + suit */
        string type;
        int rank;

    public:
        Card(void);
        Card(string &);

        void getRank(void);
        enum Suit getSuit(void);

        /* could be overloaded with cout's << operator */
        string getType(void);
        void rankCard(void);
        void sortCards(Card **);


};

#endif