thanks for help!
thanks for help!
Last edited by dsemel; 02-10-2011 at 11:42 AM.
Compiled fine for me. Line 104 is a closing brace for your while loop in main, so you might have had a brace mismatch in your code that gave you that, or you somehow got some bogus character in your source file. Both of those are pretty unlikely though, since you posted perfectly compilable code here. I would just copy/paste the code from your post into a new file and see how that works.
I wonder if your compiler might be like my old Turbo C, and an empty parameter list in the prototype, is taken by default, to mean one int?
If you continue getting the error, change your function declaration to enterParameters(void) { instead of enterParameters() {
The call to enterParameters is OK, just the declaration may need to be changed, depending on your compiler.
Doubtful. I've used a number of different GCC versions since 2.x and have never had an issue with empty parameter lists (though I abandoned them in favor of the explicit void, since I'm an explicit junkie).