aboutsummaryrefslogtreecommitdiffstats
path: root/ee1301/wk3/hw3_directory
diff options
context:
space:
mode:
authorMatthew Strapp <msattr@gmail.com>2019-02-25 11:33:26 -0600
committerMatthew Strapp <msattr@gmail.com>2019-02-25 11:33:26 -0600
commit1d6ce2b84a83adb690518374383ff5bb23a8a320 (patch)
treedefd0ed8db0be314d4e36eb03b51c952ebc88712 /ee1301/wk3/hw3_directory
parentA hack is the best kind of fix (diff)
downloadhomework-1d6ce2b84a83adb690518374383ff5bb23a8a320.tar
homework-1d6ce2b84a83adb690518374383ff5bb23a8a320.tar.gz
homework-1d6ce2b84a83adb690518374383ff5bb23a8a320.tar.bz2
homework-1d6ce2b84a83adb690518374383ff5bb23a8a320.tar.lz
homework-1d6ce2b84a83adb690518374383ff5bb23a8a320.tar.xz
homework-1d6ce2b84a83adb690518374383ff5bb23a8a320.tar.zst
homework-1d6ce2b84a83adb690518374383ff5bb23a8a320.zip
Some minor tweaking
Diffstat (limited to 'ee1301/wk3/hw3_directory')
-rw-r--r--ee1301/wk3/hw3_directory/strap012_HW3B.cpp6
-rw-r--r--ee1301/wk3/hw3_directory/strap012_HW3C.cpp14
2 files changed, 15 insertions, 5 deletions
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 <iostream>
@@ -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 <iostream>
#include <stdlib.h>
#include <cmath>
@@ -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
+}