aboutsummaryrefslogtreecommitdiffstats
path: root/ee1301
diff options
context:
space:
mode:
authorRossTheRoss <msattr@gmail.com>2019-04-19 09:09:53 -0500
committerRossTheRoss <msattr@gmail.com>2019-04-19 09:09:53 -0500
commit744de5d6db337b037bd0f8d93f4751d77e4d39dc (patch)
treeed4f7625acdb89fad442e1f7bd6325d13280cdde /ee1301
parente (diff)
downloadhomework-744de5d6db337b037bd0f8d93f4751d77e4d39dc.tar
homework-744de5d6db337b037bd0f8d93f4751d77e4d39dc.tar.gz
homework-744de5d6db337b037bd0f8d93f4751d77e4d39dc.tar.bz2
homework-744de5d6db337b037bd0f8d93f4751d77e4d39dc.tar.lz
homework-744de5d6db337b037bd0f8d93f4751d77e4d39dc.tar.xz
homework-744de5d6db337b037bd0f8d93f4751d77e4d39dc.tar.zst
homework-744de5d6db337b037bd0f8d93f4751d77e4d39dc.zip
Fixing formatting
Diffstat (limited to 'ee1301')
-rw-r--r--ee1301/wk6/lab5/strap012_lab5_w_1.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/ee1301/wk6/lab5/strap012_lab5_w_1.cpp b/ee1301/wk6/lab5/strap012_lab5_w_1.cpp
index 4020b98..d1750ed 100644
--- a/ee1301/wk6/lab5/strap012_lab5_w_1.cpp
+++ b/ee1301/wk6/lab5/strap012_lab5_w_1.cpp
@@ -1,6 +1,5 @@
#include <iostream>
#include <string>
-#include <time.h> //MinGW refuses to compile without this included when time is involved.
class DeckOfCards {
private:
@@ -30,16 +29,16 @@ void showHand(int hand[], const int size) {
for (int i=0; i<size; i++) {
//Switch case needed for showing face cards and aces
switch(hand[i]%13) {
- case 0: std::cout << 'A';
+ case 0: std::cout << 'A';
break;
- case 10: std::cout << 'J';
+ case 10: std::cout << 'J';
break;
- case 11: std::cout << 'Q';
+ case 11: std::cout << 'Q';
break;
- case 12: std::cout << 'K';
+ case 12: std::cout << 'K';
break;
- default: std::cout << hand[i]%13+1;
- }
+ default: std::cout << hand[i]%13+1;
+ }
std::cout << " ";
}
std::cout << std::endl;