468,513 Members | 1,597 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,513 developers. It's quick & easy.

what do u mean by parse error

24
void resultop(int result, int expValue)

{

string temp;
if(result==2)parse error
{
temp="Unknown";
}
else
{
if (result == expValue);
{
temp = "Passed";
}
else --- this is where the parse error is
{
temp = "Fail";
}

}

can someone help me ?
Oct 11 '06 #1
2 6233
Banfa
9,056 Expert Mod 8TB
It means you put a semi-colon on the end of your if

Expand|Select|Wrap|Line Numbers
  1.  if (result == expValue);
  2.  
ending the if statement and making the else invalid at that point.
Oct 11 '06 #2
cool17
24
thank you once again
Oct 11 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

220 posts views Thread by Brandon J. Van Every | last post: by
1 post views Thread by H.L Bai | last post: by
51 posts views Thread by WindAndWaves | last post: by
6 posts views Thread by Scirious | last post: by
6 posts views Thread by Bint | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.