24.09.2010, 13:14
You could also do
But that's the harder way of doing it..
pawn Код:
if(inputtext[0] = '1')
{
if(inputtext[1] = '0') //10
{ }
else if(inputtext[1] = '1') //11
{ }
else if(inputtext[1] = '\0') //EOS (end of string) aka only '1'
{ }
}