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 / error C2447: '{' : missing function header (old-style formal list?)

Author
Message
tvzen
14
Years of Service
User Offline
Joined: 3rd Dec 2009
Location:
Posted: 25th Jan 2010 22:10 Edited at: 25th Jan 2010 22:10
now,i have one problem

error C2447: '{' : missing function header (old-style formal list?)

this one bogles me,like (old-style formal list?)

here is the code

Aldur
17
Years of Service
User Offline
Joined: 8th Oct 2007
Location: Melbourne, Australia
Posted: 25th Jan 2010 22:14
You're main game loop doesn't have the first {

puppyofkosh
17
Years of Service
User Offline
Joined: 9th Jan 2007
Location:
Posted: 25th Jan 2010 22:16 Edited at: 25th Jan 2010 22:17
Get rid of the semi colon after



(Not the prototype or whatever its called at the top)

and add brackets for the while loop

PaTTE
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location:
Posted: 25th Jan 2010 22:17
You have an extra semicolon where you define your function mouse.

should be
void mouse(void)
{
...
}
tvzen
14
Years of Service
User Offline
Joined: 3rd Dec 2009
Location:
Posted: 25th Jan 2010 22:32
did all of above

new code


new errors

it says Void has to be followed by semi colleen
and
1>c:\users\dubeau family\documents\visual studio 2008\projects\dark gdk - game12\dark gdk - game12\main.cpp(74) : fatal error C1075: end of file found before the left brace '{' at 'c:\users\dubeau family\documents\visual studio 2008\projects\dark gdk - game12\dark gdk - game12\main.cpp(15)' was matched
tvzen
14
Years of Service
User Offline
Joined: 3rd Dec 2009
Location:
Posted: 25th Jan 2010 22:58
ok,i have a new code

and these errors

1.syntax error : 'while'
2.error C2447: '{' : missing function header (old-style formal list?)
and #2 happens again
Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 25th Jan 2010 23:03
You still didn't do what they told you to do.



Your_Health = (My_Mood == HAPPY) ? 100 : NULL;
tvzen
14
Years of Service
User Offline
Joined: 3rd Dec 2009
Location:
Posted: 25th Jan 2010 23:15
thank you for explaining that

Login to post a reply

Server time is: 2024-11-20 05:41:22
Your offset time is: 2024-11-20 05:41:22