From f5c7e867577539d672e7b3ec0472e5dde0cd151e Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Wed, 17 Apr 2019 12:40:03 -0500 Subject: Last minute touch-ups --- ee1301/wk6/hw6_directory/strap012_HW6A.cpp | 4 +--- ee1301/wk6/hw6_directory/strap012_HW6B.cpp | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'ee1301') diff --git a/ee1301/wk6/hw6_directory/strap012_HW6A.cpp b/ee1301/wk6/hw6_directory/strap012_HW6A.cpp index f2f983f..c255ade 100644 --- a/ee1301/wk6/hw6_directory/strap012_HW6A.cpp +++ b/ee1301/wk6/hw6_directory/strap012_HW6A.cpp @@ -4,7 +4,6 @@ //HW 6A: Dice Class #include #include -#include using namespace std; const int maxNumDie=50; @@ -35,7 +34,7 @@ int main() { int roll[maxNumDie]; int max=0, min=999999, sum=0, sample=0; double avg; - srand(time(0)); // DO NOT WRITE THIS LINE AGAIN OR ANYWHERE ELSE + srand(time(NULL)); // DO NOT WRITE THIS LINE AGAIN OR ANYWHERE ELSE cout << "What do you want to roll? "; string s; getline(cin, s); @@ -57,7 +56,6 @@ int main() { int curRoll=0; numRolls+=1.0; for(int i=1; i < pairs[0]; i+=2) { -// cout << "["<