From 744de5d6db337b037bd0f8d93f4751d77e4d39dc Mon Sep 17 00:00:00 2001 From: RossTheRoss <msattr@gmail.com> Date: Fri, 19 Apr 2019 09:09:53 -0500 Subject: Fixing formatting --- ee1301/wk6/lab5/strap012_lab5_w_1.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'ee1301') 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; -- cgit v1.2.3