a function-definition is not allowed here before '{' token

When I try to compile I get the following error:
C:\...\main.cpp|13|error: a function-definition is not allowed here before '{' token|
I know this can be caused by creating a function into another function but I did not created a function into "int main()". Here's my code:
https://gist.github.com/ThomasCoder/a36b267c5a5b9e784ba1
Here's "base.h":
https://gist.github.com/ThomasCoder/45e08dffbc99503e922c
And here's "programs.h":
https://gist.github.com/ThomasCoder/987eba3d1b8c9d180b5d
If anyone finds the error, please tell how to solve.
Btw, I'm running on Windows and using gcc as compiler.

Edit:
Oops, stupid mistake, thanks helios.
Last edited on
programs() in programs.h in unclosed. The brace at the end closes the end if on line 108. You'd have an easier time seeing things like this if you used a consistent indenting style.
This has nothing to do with the error, but line 18 in main.cpp should be while(strt == 1) { not while(strt = 1) {
Last edited on
Well, while we're at it, in base.h on line 70 there's a stray ++.
Topic archived. No new replies allowed.