Thread: cant find the errors.

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    10

    cant find the errors.

    Hi

    I am studying c++ in collage. I have this program due on Thursday and it is kicking my but trying to find the last 2 errors. any and all help would be appreciated. I know the whole thing might be messed up, and if it is please help me fix it, or tell me where to find the necessary info to fix it.
    thanks
    Steve

  2. #2
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Here are some clues:

    The logical AND operator is '&&', not '&' (which is the bitwise AND operator).
    When you write 'if' statements, all conditions must be within the parentheses. For example: 'if((cond1) && (cond2))' not 'if(cond1)&&(cond2)'.
    Also, when you declare a variable, the syntax is: 'type_name variable_name', not 'type_name = variable_name'.

    I hope this helps you out.

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    10

    can't find the errors

    Thanks for the help. It was a big help. Thanks again. That was the biggest problem I had.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 09:13 AM
  2. Logical errors with seach function
    By Taka in forum C Programming
    Replies: 4
    Last Post: 09-18-2006, 05:20 AM
  3. 4 errors I can't find
    By Unregistered in forum C++ Programming
    Replies: 3
    Last Post: 04-13-2002, 09:35 AM
  4. executing errors
    By s0ul2squeeze in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2002, 01:43 PM