Problem with Tutorial #2

This is a discussion on Problem with Tutorial #2 within the Windows Programming forums, part of the Platform Specific Boards category; Mods please delete thread. Posted updated/new in proper forum. Sorry...

  1. #1
    C++ newb in training
    Join Date
    Mar 2005
    Location
    Burlington Wa
    Posts
    14

    Problem with Tutorial #2| Mods Delete moved.

    Mods please delete thread. Posted updated/new in proper forum. Sorry
    Last edited by Keiyentai; 03-20-2005 at 05:50 PM. Reason: posted in wrong forum
    Find the loop holes, then fix the errors, after you have found all the useful info

  2. #2
    Rabite SirCrono6's Avatar
    Join Date
    Nov 2003
    Location
    California, US
    Posts
    269
    > if ( age= 13> 49)
    Well, that would always be false because you make age 13 which is of course less than 49. You need to use the ==/>=/<= operators instead.
    Code:
    if( age >= 13 && age <= 49 )
    Is that what you mean (if age is or is more than 13 but less than or is 49)?

    - SirCrono6

    Edit: Also, this should be in the C++ forum not the Windows forum.
    From C to shining C++!

    Great graphics, sounds, algorithms, AI, pathfinding, visual effects, cutscenes, etc., etc. do NOT make a good game.
    - Bubba

    IDE and Compiler - Code::Blocks with MinGW
    Operating System - Windows XP Professional x64 Edition

  3. #3
    C++ newb in training
    Join Date
    Mar 2005
    Location
    Burlington Wa
    Posts
    14
    >_< sorry lol I forgot I went from the C++ forums to Windows Programing my bad. MODS feel free to move.
    Find the loop holes, then fix the errors, after you have found all the useful info

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Tutorial problem (headers)
    By AsiNisiMasa in forum C++ Programming
    Replies: 1
    Last Post: 08-08-2005, 11:24 PM
  2. MSVC Tutorial problem - Monochrome Palette
    By colinH in forum C++ Programming
    Replies: 4
    Last Post: 10-30-2002, 02:57 AM
  3. half ADT (nested struct) problem...
    By CyC|OpS in forum C Programming
    Replies: 1
    Last Post: 10-26-2002, 08:37 AM
  4. binary tree problem - help needed
    By sanju in forum C Programming
    Replies: 4
    Last Post: 10-16-2002, 05:18 AM
  5. Problem running a Cboard C++ tutorial!
    By Monkey Liar in forum C++ Programming
    Replies: 6
    Last Post: 02-15-2002, 02:32 AM

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