Hi,
sorry for the beginner question, but I cannot find how this make
I'm a need first letter from string I traing find answ. but no work:
char cFirst = "3CCC3";
if (cFirst[1] == "C") printf("AAAA");
if (cFirst[0] == "3") printf("33333");
have this error:
Error in 'line 292:
subscript requires array or pointer type
< if (cFirst[1] == "C") printf("AAAA"); >.
string cFirst = "3CCC3";
if (cFirst[1] == "C") printf("AAAA");
if (cFirst[0] == "3") printf("33333");
this error
Syntax error: Wrong type EQ:LONG:ARRAY:LONG
< if (cFirst[1] == "C") printf("AAAA"); >
how to test the first letter in the string?Thank's Milan