diff options
Diffstat (limited to 'ee1301/wk3/hw3_directory/strap012_HW3C.cpp')
-rw-r--r-- | ee1301/wk3/hw3_directory/strap012_HW3C.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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 <iomanip> 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') { |