velociraptor
Oct 30th, 2006, 05:56 PM
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?
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?