expected primary-expression before "void"

Hello, im new to programming started last week. Ive been trying to program a small(ish) game and continuously get the same error exactly 20 times.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
IsValid = 0;
}
}
}
}
while ( IsValid == 0 );
}
};

void CGame::ProcessLost (void)
{
if (m_LastAction)
{
m_GameStatus = GameMainMenu;
}

EndGame ();
Show ();
};

void CGame::Process (void)
{
if (m_GameStatus == GameSplashScreen);
{
Show ();
}


I searched for a answer through this site and google but couldnt find one.
Any help is thanked.

The error is: expected primary-expression before "void" and expected `;' before "void"
Last edited on
No semicolons after if statements and function bodies.
You need to indent your code properly.
Quick and helpful. Thanks
Topic archived. No new replies allowed.