summaryrefslogtreecommitdiffstats
path: root/card.h
diff options
context:
space:
mode:
Diffstat (limited to 'card.h')
-rw-r--r--card.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/card.h b/card.h
new file mode 100644
index 0000000..d97cb70
--- /dev/null
+++ b/card.h
@@ -0,0 +1,29 @@
+#ifndef _CARD_H_
+#define _CARD_H_
+
+#include <iostream>
+#include <string>
+
+using std::string;
+using std::cout;
+using std::endl;
+
+class Card
+{
+ private:
+ /* card + suit */
+ string type;
+ int rank;
+
+ public:
+ Card(void);
+ Card(string &);
+
+ /* could be overloaded with cout's << operator */
+ string getType(void);
+ void rankCard(void);
+ void sortCards(Card **);
+};
+
+#endif
+