the answer to your basic problem:
is incorrect. it should be
if (isdigit(cResponse))
{
// do stuff here
}
(1) an if-statement must be entirely enclosed in parentheses.
(2) an if-statement -- if the condition is evaluated as true -- will execute
either one line of code terminated with a semi-colon
or a block of code contained between the curly braces, '{' and '}'
so even if you framed the conditional statement correctly, since you put the semicolon directly after the if statement, it still would never execute anything when the condition evaluated true.
.
Last edited by jephthah; Jul 2nd, 2009 at 1:54 pm.
Reputation Points: 2143
Solved Threads: 178
Posting Maven
Offline 2,567 posts
since Feb 2008