aboutsummaryrefslogtreecommitdiffstats
path: root/ee1301
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ee1301/wk6/lab5/strap012_lab5_w_1.cpp3
-rwxr-xr-xee1301/wk6/lab5/testbin35136 -> 0 bytes
2 files changed, 1 insertions, 2 deletions
diff --git a/ee1301/wk6/lab5/strap012_lab5_w_1.cpp b/ee1301/wk6/lab5/strap012_lab5_w_1.cpp
index 490b54c..63d0a79 100644
--- a/ee1301/wk6/lab5/strap012_lab5_w_1.cpp
+++ b/ee1301/wk6/lab5/strap012_lab5_w_1.cpp
@@ -1,5 +1,6 @@
#include <iostream>
#include <string>
+#include <time.h>
class DeckOfCards {
private:
@@ -10,7 +11,6 @@ public:
for(int i=0; i<52; i++) {
deck[i]=i+1;
}
- int index=0;
}
int dealCard() {
index++;
@@ -51,7 +51,6 @@ int main() {
void showHand(int hand[], const int size) {
for (int i=0; i<size; i++) {
- char newHand[size];
switch(hand[i]%13) {
case 0: std::cout << 'A';
break;
diff --git a/ee1301/wk6/lab5/test b/ee1301/wk6/lab5/test
deleted file mode 100755
index aa36d7f..0000000
--- a/ee1301/wk6/lab5/test
+++ /dev/null
Binary files differ