summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranklin Wei <frankhwei536@gmail.com>2014-04-06 21:58:39 +0100
committerFranklin Wei <frankhwei536@gmail.com>2014-04-06 21:58:39 +0100
commit6030df2c8fcb047c342aa8156af82479d6f8cb20 (patch)
tree405b85d39e3adba2d24e4f1c82131e9f0a9ca24b
parent65a78c58a4923e9d426d6c2ed16f4267c01e183f (diff)
downloadpish-6030df2c8fcb047c342aa8156af82479d6f8cb20.zip
pish-6030df2c8fcb047c342aa8156af82479d6f8cb20.tar.gz
pish-6030df2c8fcb047c342aa8156af82479d6f8cb20.tar.bz2
pish-6030df2c8fcb047c342aa8156af82479d6f8cb20.tar.xz
Made echoed characters all uppercase
-rw-r--r--morse.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/morse.cpp b/morse.cpp
index 95c5114..ae0e391 100644
--- a/morse.cpp
+++ b/morse.cpp
@@ -32,7 +32,7 @@ void transmit(const string& str)
tmp=toupper(ch);
string morse=table[tmp];
if(morse!="")
- cout << ch << ": " << flush;
+ cout << toupper(ch) << ": " << flush;
for(unsigned int j=0;j<morse.length();++j)
{
char morseCh=morse[j];