diff options
-rw-r--r-- | ee1301/wk6/lab5/strap012_lab5_w_1.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ee1301/wk6/lab5/strap012_lab5_w_1.cpp b/ee1301/wk6/lab5/strap012_lab5_w_1.cpp index d1750ed..f503fc9 100644 --- a/ee1301/wk6/lab5/strap012_lab5_w_1.cpp +++ b/ee1301/wk6/lab5/strap012_lab5_w_1.cpp @@ -1,5 +1,5 @@ #include <iostream> -#include <string> +//#include <time.h> //Needed if using MinGW class DeckOfCards { private: @@ -64,6 +64,7 @@ void DeckOfCards::shuffle() { } //Function to deal the card when asked by grabbing from the deck and shuffling if such card does not exist. +//Returns the card drawn from the deck int DeckOfCards::dealCard() { index++; if (index>=52) { |