From 0cf7e0d3e1a3506533fa27ef712ee612e3fa8657 Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Tue, 26 Feb 2019 14:00:34 -0600 Subject: MEANINGFUL CO M M EN TS Also making 3B a function cause why not. --- ee1301/wk3/hw3_directory/strap012_HW3C.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ee1301/wk3/hw3_directory/strap012_HW3C.cpp') diff --git a/ee1301/wk3/hw3_directory/strap012_HW3C.cpp b/ee1301/wk3/hw3_directory/strap012_HW3C.cpp index 69eb51f..5270241 100644 --- a/ee1301/wk3/hw3_directory/strap012_HW3C.cpp +++ b/ee1301/wk3/hw3_directory/strap012_HW3C.cpp @@ -14,7 +14,12 @@ Character Detection #include using namespace std; -char swapCase(char s) { +// Function: swapCase +// --------------------------- +// Swaps the case of a latin ASCII character and prints an error if not one +// s: the character + +void swapCase(char s) { char New; cout << "You entered " << s; if (s >= 'a' && s <= 'z') { -- cgit v1.2.3