Function-definition error before '{' token in C++

1 reply · 2K views · last reply
NDiggity
Messages
53
Reaction score
0

Homework Statement


Well I believe I have solved the problem correctly but I am not sure what I am doing wrong. I get the compiler error "a function-definition is not allowed here before ‘{’ token"

Here is my pasted code: http://rafb.net/p/8P4HYa49.html
 
Last edited:
Nevermind, I realized I have to put the function above int main().