471,850 Members | 1,106 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,850 software developers and data experts.

what do u mean by parse error

void resultop(int result, int expValue)


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


can someone help me ?
Oct 11 '06 #1
2 6393
9,065 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);
ending the if statement and making the else invalid at that point.
Oct 11 '06 #2
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 NeoPa | last post: by
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.