aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRossTheRoss <msattr@gmail.com>2019-04-19 09:19:07 -0500
committerRossTheRoss <msattr@gmail.com>2019-04-19 09:19:07 -0500
commit19a35c26620592aeb133308c9eb8cf2763e4ed4f (patch)
tree2231deaccb3bc1c674495d51a70e24224530d525
parentFixing formatting (diff)
downloadhomework-19a35c26620592aeb133308c9eb8cf2763e4ed4f.tar
homework-19a35c26620592aeb133308c9eb8cf2763e4ed4f.tar.gz
homework-19a35c26620592aeb133308c9eb8cf2763e4ed4f.tar.bz2
homework-19a35c26620592aeb133308c9eb8cf2763e4ed4f.tar.lz
homework-19a35c26620592aeb133308c9eb8cf2763e4ed4f.tar.xz
homework-19a35c26620592aeb133308c9eb8cf2763e4ed4f.tar.zst
homework-19a35c26620592aeb133308c9eb8cf2763e4ed4f.zip
e
e e e e e e e e e
-rw-r--r--ee1301/wk6/lab5/strap012_lab5_w_1.cpp3
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) {