Thread: Help me translate these compile errors

  1. #1
    Registered User
    Join Date
    Dec 2006
    Posts
    7

    Help me translate these compile errors

    The jpegs are the screenshots of the compiler errors, incase you don't use dev-c and the errors say something different on your compiler. The third attachment is the complete code incase it's needed.

    I know these are probably simple errors but I'm just not getting it!

    I appreciate any insight.

    ------------------------
    I've fixed my errors in the if..else statement.

    I called my functions instead of defining them.

    Now I am getting an error with

    int getPin (int pin, int attempts)

    I only want to return attempts into my main. Is this the correct way to write the function?
    Last edited by imfrrreal; 12-11-2006 at 11:24 PM.

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    You're using the same name to be more than one thing.
    You're declaring function prototypes, not calling functions (and using full braces would definitely help).
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DirectX9 compile errors
    By maxthecat in forum Windows Programming
    Replies: 5
    Last Post: 01-01-2006, 10:33 PM
  2. compile once, compile twice ...error
    By Benzakhar in forum Windows Programming
    Replies: 6
    Last Post: 12-28-2003, 06:00 AM
  3. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 05:44 PM
  4. executing errors
    By s0ul2squeeze in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2002, 01:43 PM