aboutsummaryrefslogtreecommitdiffstats
path: root/ee1301/wk3/hw3_directory/strap012_HW3C.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ee1301/wk3/hw3_directory/strap012_HW3C.cpp')
-rw-r--r--ee1301/wk3/hw3_directory/strap012_HW3C.cpp14
1 files changed, 12 insertions, 2 deletions
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
+}