I'm only having a problem with a small part, i'm fairly new to computer programming and the program i'm using is Dev-C++. The part that i'm having a problem with is this:
int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR CmdLine, int CmdShow);
;{
static WNDCLASS Wc;
memset(&Wc,0,si zeof(Wc));
static MSG Msg;
memset(&Msg,0,s izeof(Msg));
Wc.style=CS_HRE DRAW | CS_VREDRAW;
Wc.lpfnWndProc= WndProc;
Wc.cbClsExtra=0 ;
Wc.cbWndExtra=0 ;
Wc.hInstance=hI nst;
Wc.hIcon=LoadIc on(NULL,IDI_WIN LOGO);
Errors:
54 C:\Users\Matthe w\Dev-Cpp\Bouncing ball.cpp expected unqualified-id before '{' token
54 C:\Users\Matthe w\Dev-Cpp\Bouncing ball.cpp expected `,' or `;' before '{' token
Line 54 is the problem and it's the ";{" line.
Please help me out with this problem, i honestly have no idea what i can do to fix it.
					int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR CmdLine, int CmdShow);
;{
static WNDCLASS Wc;
memset(&Wc,0,si zeof(Wc));
static MSG Msg;
memset(&Msg,0,s izeof(Msg));
Wc.style=CS_HRE DRAW | CS_VREDRAW;
Wc.lpfnWndProc= WndProc;
Wc.cbClsExtra=0 ;
Wc.cbWndExtra=0 ;
Wc.hInstance=hI nst;
Wc.hIcon=LoadIc on(NULL,IDI_WIN LOGO);
Errors:
54 C:\Users\Matthe w\Dev-Cpp\Bouncing ball.cpp expected unqualified-id before '{' token
54 C:\Users\Matthe w\Dev-Cpp\Bouncing ball.cpp expected `,' or `;' before '{' token
Line 54 is the problem and it's the ";{" line.
Please help me out with this problem, i honestly have no idea what i can do to fix it.
 
	
Comment