From 1d6ce2b84a83adb690518374383ff5bb23a8a320 Mon Sep 17 00:00:00 2001 From: Matthew Strapp Date: Mon, 25 Feb 2019 11:33:26 -0600 Subject: Some minor tweaking --- ee1301/wk3/hw3_directory/strap012_HW3B.cpp | 6 +++--- ee1301/wk3/hw3_directory/strap012_HW3C.cpp | 14 ++++++++++++-- 2 files changed, 15 insertions(+), 5 deletions(-) (limited to 'ee1301') diff --git a/ee1301/wk3/hw3_directory/strap012_HW3B.cpp b/ee1301/wk3/hw3_directory/strap012_HW3B.cpp index 1ed3aee..8a23e24 100644 --- a/ee1301/wk3/hw3_directory/strap012_HW3B.cpp +++ b/ee1301/wk3/hw3_directory/strap012_HW3B.cpp @@ -4,8 +4,8 @@ Matthew Strapp 5449340 EE1301 Spring 2019 -Homework 3A -One-armed Bandit Simulator +Homework 3B +Character Detection */ #include @@ -37,4 +37,4 @@ int main () { } } } -} \ No newline at end of file +} diff --git a/ee1301/wk3/hw3_directory/strap012_HW3C.cpp b/ee1301/wk3/hw3_directory/strap012_HW3C.cpp index ac7bc1c..7267e02 100644 --- a/ee1301/wk3/hw3_directory/strap012_HW3C.cpp +++ b/ee1301/wk3/hw3_directory/strap012_HW3C.cpp @@ -1,3 +1,13 @@ +/* +27 Feb 2019 +Matthew Strapp +5449340 +EE1301 +Spring 2019 +Homework 3C +Character Detection +*/ + #include #include #include @@ -29,11 +39,11 @@ char swapCase(char s) { int main() { char character; - do { + do { //This loops until '@' is entered cout << "Please enter a character that is an ASCII letter in the range [A-Za-z]: "; cin >> character; if (character!='@') { swapCase(character); } } while (character!='@'); -} \ No newline at end of file +} -- cgit v1.2.3