FOR THE LAST TIME! I uderstand c++ but STUPID visual c++
keeps giving me error about the placement of stuff!!!!!!!!!!!!!!!!!. And yes, I do forget stupid stuff,but that dose not GIVE YOU THE RIGHT to asume that I'm a troll!!!!!!!!!!
What do these errors mean
omg. That code has to be written bad on purpose. he has 4 SDL_Event variables. I'm not even sure that you can call it a coding convention, with the way the end-of-statment semicolons are placed.
ok, MPG. Whats up? Please, please tell me this is some tasteless joke.
ok, MPG. Whats up? Please, please tell me this is some tasteless joke.
Quote:Original post by MPG
I uderstand c++ but STUPID visual c++
keeps giving me error about the placement of stuff!!!!!!!!!!!!!!!!!.
Quote:Original post by MPG
And yes, I do forget stupid stuff
perhaps it's all the stupid things that you are forgetting that are causing all the STUPID visual c++ errors.
To be extremely honest with you, VC++ is simply pointing out the stupid mistakes you are making. You should probably forget about graphics programming until you learn what these errors mean and how to fix them. We cannot help you with complex questions if you are constantly making simple syntax mistakes and not realising it.
for example:
SDL_Event Event
;SDL_Rect coord
;coord.x = 200;
your compiler was giving you an error about "missing semicolon (;) before blahblah". the correct code should be this
SDL_Event Event;
SDL_Rect coord;
coord.x = 200;
notice the placement of the semicolons.
peace
I type this first.
SDL_Event Event;
SDL_Rect coord;
coord.x = 200;
THEN it tells me to do this
SDL_Event Event;
SDL_Rect coord;
coord.x = 200;
and now its saying screen is an undeclared identifier!!!
SDL_Event Event;
SDL_Rect coord;
coord.x = 200;
THEN it tells me to do this
SDL_Event Event;
SDL_Rect coord;
coord.x = 200;
and now its saying screen is an undeclared identifier!!!
Quote:Original post by Axenation
SDL_Event Event
;SDL_Rect coord
;coord.x = 200;
your compiler was giving you an error about "missing semicolon (;) before blahblah". the correct code should be this
SDL_Event Event;
SDL_Rect coord;
coord.x = 200;
notice the placement of the semicolons.
arent these 2 the exact same thing? im pretty sure both will work fine. i thought C++ ignored all white space....
first, I really recommmend you stop doing that really annoying semicolon placement, second, you forgot the () in the line that says:
move = SDL_GetTicks;
move = SDL_GetTicks;
Quote:Original post by graveyard fillaQuote:Original post by Axenation
SDL_Event Event
;SDL_Rect coord
;coord.x = 200;
your compiler was giving you an error about "missing semicolon (;) before blahblah". the correct code should be this
SDL_Event Event;
SDL_Rect coord;
coord.x = 200;
notice the placement of the semicolons.
arent these 2 the exact same thing? im pretty sure both will work fine. i thought C++ ignored all white space....
Correct, Grave, but it's still a horrible coding habit. The first block is what im guessing he did to fix a missing (;) syntax error, the second block was me trying to point out what the error was really trying to tell him.
You see when I fix an error,add new code,or add a new variable it returns an error about somthing that compiled earlyer or somthing like this: ; is missing befor coord.
Quote:Original post by MPG
You see when I fix an error,add new code,or add a new variable it returns an error about somthing that compiled earlyer or somthing like this: ; is missing befor coord.
it usualy means that you missed it on the line right above that one.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement