cant find the errors.

This is a discussion on cant find the errors. within the C++ Programming forums, part of the General Programming Boards category; Hi I am studying c++ in collage. I have this program due on Thursday and it is kicking my but ...

  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
    Attached Files Attached Files

  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, 10:13 AM
  2. Logical errors with seach function
    By Taka in forum C Programming
    Replies: 4
    Last Post: 09-18-2006, 06:20 AM
  3. 4 errors I can't find
    By Unregistered in forum C++ Programming
    Replies: 3
    Last Post: 04-13-2002, 10:35 AM
  4. executing errors
    By s0ul2squeeze in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2002, 01:43 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21