From 812f81f973cafd94e9d1caafad7b8226776d2566 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sun, 6 Apr 2014 22:02:41 +0100 Subject: Casted toupper to char --- morse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'morse.cpp') diff --git a/morse.cpp b/morse.cpp index ae0e391..f54800f 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 << toupper(ch) << ": " << flush; + cout << (char)toupper(ch) << ": " << flush; for(unsigned int j=0;j