-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCard.h
More file actions
32 lines (27 loc) · 798 Bytes
/
Card.h
File metadata and controls
32 lines (27 loc) · 798 Bytes
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
//George Vargas
//CECS 282-07
//Prog 1-Solitaire Prime
//Feb 12, 2020
//These protect the header files.
#ifndef CARD_H
#define CARD_H
class Card {
//These create the suit & rank the cards.
private:
char suit;
char rank;
public:
//Create a "blank" card.
Card();
//Constructor to create a card, setting the rank and suit.
Card(char, char);
//Set an existing blank card to particular value.
void setCard(char, char);
//Display the card using 2 feilds...Ace of Spades: AS, Ten of Diamond: 10D, Queen of Heart: QH, Three of Club: 3C.
void showCard();
//This returns the suit of the card object from Private suit
char getSuit();
//Return the point value of the card. Ace=1, 2 through 10, Jack=10, Queen=10, King=10.
int getValue();
};
#endif