Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Is VC++ 2008 Express faulty???

Author
Message
sydbod
16
Years of Service
User Offline
Joined: 14th Jun 2008
Location: Just look at the picture
Posted: 9th Nov 2008 12:46 Edited at: 9th Nov 2008 12:53
I have been battling one very simple function for some silly amount of time and still can not find a fault with it.

The error message is
Quote: "1>c:documents and settingsuserdesktop1.0.7versioncondorsourceupgrade5bullet.cpp(112) : error C2181: illegal else without matching if"


It points to the very last "else" in the function.
This is it:


This is the whole function and hopefully people can see that it is correct ????? or am I blind ???



can any one see what this compiler is so hot and bothered about ???
sydbod
16
Years of Service
User Offline
Joined: 14th Jun 2008
Location: Just look at the picture
Posted: 9th Nov 2008 13:23 Edited at: 9th Nov 2008 13:25
Thank You ... Thank You ... Thank You.

I was getting so frustrated.

Such an obvious error

"<=" is fine as it is.

Some times a person just has to step back from something they have written, as they automatically don't see the error they have introduced.

Login to post a reply

Server time is: 2024-09-30 09:35:23
Your offset time is: 2024-09-30 09:35:23