Skip to content

Commit 80faaaf

Browse files
authored
fix enum
1 parent 3a2f276 commit 80faaaf

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Chapter16/carddeck_1a.c

+7-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@
2222
// of literals; when you need to change these, they are applied
2323
// everywhere.
2424
//
25-
const int kCardsInDeck = 52; // For now, 52 cards in a deck. This will change
26-
// depending upon the card game and the # of wild
27-
// cards, etc.
28-
const int kCardsInSuit = 13; // For now, kCardsInDeck / 4. This will change
29-
// depending upon the card game.
25+
enum {
26+
kCardsInDeck = 52, // For now, 52 cards in a deck. This will change
27+
// depending upon the card game and the # of wild
28+
// cards, etc.
29+
kCardsInSuit = 13 // For now, kCardsInDeck / 4. This will change
30+
// depending upon the card game.
31+
};
3032

3133
const bool kWildCard = true;
3234
const bool kNotWildCard = false;

0 commit comments

Comments
 (0)