Thread: Input Error

  1. #16
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Yes, you need to remove the first of your "cin >> temp2conv" and the cin.ignore() immediately after.

    And you still have a lot of "if (something == 99 ...) ..." where you should have a "if (something == 'c' ...) ..."

    If you use a construction like this:
    Code:
       if (tolower(something) == 'c') ...
    you don't need to compare the upper case version, which makes you if-statements easier to read.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  2. #17
    Registered User
    Join Date
    Nov 2007
    Posts
    164
    matsp or any one else ?

    can they tell me where I can find the documentation about the cin >> ???

    or a guide on how to use it ?

    so I can learn it completely

    or is there a book which defines all these functions and things which I should buy ?

  3. #18
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    There is a reference here:
    http://www.cplusplus.com/reference/

    That covers all of the standard C++ library.

    There is some tutorials on this site that explain clever usage.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. An error is driving me nuts!
    By ulillillia in forum C Programming
    Replies: 5
    Last Post: 04-04-2009, 09:15 PM
  2. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  3. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  4. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 01:17 PM
  5. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM