No matter how hard I try, i CANNOT assign a value for char type. In theory it should go:
char whatever = whicheverletter;
cout << whatever << endl;
But, i can't get the sucker to run without getting an error after compiling...what am i doing wrong? :confused: :confused:
Variables: Char
Started by phantom3380, Apr 07 2007 06:45 AM
4 replies to this topic
#1
Posted 07 April 2007 - 06:45 AM
Yea as it was writ: "Compile and Run" :p
|
|
|
#2
Posted 07 April 2007 - 11:29 AM
what is whicheverletter?
are you trying:
char whatever = A
or
char whatever = 'A';
try the single quote
are you trying:
char whatever = A
or
char whatever = 'A';
try the single quote
#3
Posted 07 April 2007 - 11:54 AM
icepack said:
what is whicheverletter?
char whatever = 'A';
try the single quote
char whatever = 'A';
try the single quote
The single quote is definitely what i am having trouble with...can't seem to find it on my keyboard though...:(
Yea as it was writ: "Compile and Run" :p
#4
Posted 08 April 2007 - 12:38 PM
What kind of keyboard do you have? A single quote is just a double quote with out pressing shift :P
Or you can just copy/paste this
'
Or you can just copy/paste this
'
#5
Posted 08 April 2007 - 11:17 PM
ummmm (grins sheepishly)
It turns out the single quote was right next to my return key, having spent ten minutes trying to find it :o
It turns out the single quote was right next to my return key, having spent ten minutes trying to find it :o
Yea as it was writ: "Compile and Run" :p


Sign In
Create Account


Back to top









