char newChar;
int amount = 2;
newChar = 'A' + 2; // gives me C, which is great
newChar = 'A' + amount; // nothing, i get an error ???
The error:
Incompatible types:
Required: char
Found: int
how can I make this work?
|
Results 1 to 2 of 2
Threaded View
|
Click Here to Expand Forum to Full Width |