Thread: new to C & need help finding parse error

  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    17

    new to C & need help finding parse error

    thanks for help!
    Last edited by dsemel; 02-10-2011 at 11:42 AM.

  2. #2
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,909
    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.

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    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.

  4. #4
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,909
    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).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. How to monitor process creation?
    By markiz in forum Windows Programming
    Replies: 31
    Last Post: 03-17-2008, 02:39 PM
  3. Using VC Toolkit 2003
    By Noobwaker in forum Windows Programming
    Replies: 8
    Last Post: 03-13-2006, 07:33 AM
  4. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 01:10 AM