diff options
| author | Franklin Wei <frankhwei536@gmail.com> | 2014-04-06 22:02:41 +0100 |
|---|---|---|
| committer | Franklin Wei <frankhwei536@gmail.com> | 2014-04-06 22:02:41 +0100 |
| commit | 812f81f973cafd94e9d1caafad7b8226776d2566 (patch) | |
| tree | be6a14b8674d343213a33556ec99665e786a5f04 | |
| parent | 6030df2c8fcb047c342aa8156af82479d6f8cb20 (diff) | |
| download | pish-812f81f973cafd94e9d1caafad7b8226776d2566.zip pish-812f81f973cafd94e9d1caafad7b8226776d2566.tar.gz pish-812f81f973cafd94e9d1caafad7b8226776d2566.tar.bz2 pish-812f81f973cafd94e9d1caafad7b8226776d2566.tar.xz | |
Casted toupper to char
| -rw-r--r-- | morse.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -32,7 +32,7 @@ void transmit(const string& str) tmp=toupper(ch); string morse=table[tmp]; if(morse!="") - cout << toupper(ch) << ": " << flush; + cout << (char)toupper(ch) << ": " << flush; for(unsigned int j=0;j<morse.length();++j) { char morseCh=morse[j]; |