03.06.2014, 23:27
When you use input[i] it returns the entire string from that point onwards. For example:
The proper way to compare a single character would be:
Note: single quotes.
But you may want to look at an implementation of rot13 or similar; 26 similar lines does not seem efficient at all.
pawn Код:
new input[6] = "hello";
printf("%s", input[1]);
//prints: ello
pawn Код:
if(input[i] == 'A')
But you may want to look at an implementation of rot13 or similar; 26 similar lines does not seem efficient at all.