Thread: checking cin for words

  1. #16
    Registered User
    Join Date
    Jul 2004
    Posts
    25
    ok now that i have ran the program it does this-->you type something, and even if wut you type is "bob" then you type something else again, then after that it says hi bob????????

    EDIT: i used my borland compiler and it worked fine, wut the hells wrong with msviual cpp???
    Last edited by killdragon; 07-27-2004 at 10:36 PM.

  2. #17
    Registered User jlou's Avatar
    Join Date
    Jul 2003
    Posts
    1,090
    It's hard to tell what the problem is - is it that you have to type two different things (hitting enter twice) before you get your answer, or is it that you can type in anything and it always says "Hi bob"?

    If it's the first one, there is a bug in MSVC++ 6.0, which may or may not be there in 5.0 (I don't know anything about 5.0). Try this link just in case it fixes your problem, it refers to both 5.0 and 6.0. Scroll down to the part about <string>.

    http://www.dinkumware.com/vc_fixes.html
    Last edited by jlou; 07-28-2004 at 08:38 AM.

  3. #18
    Unregistered User Overload's Avatar
    Join Date
    Jul 2004
    Posts
    12
    Quote Originally Posted by killdragon
    ok now that i have ran the program it does this-->you type something, and even if wut you type is "bob" then you type something else again, then after that it says hi bob????????

    EDIT: i used my borland compiler and it worked fine, wut the hells wrong with msviual cpp???
    Try giving us the code so far, and what your concept is (what you are trying to do).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  2. Interpreter.c
    By moussa in forum C Programming
    Replies: 4
    Last Post: 05-28-2008, 05:59 PM
  3. getline(function)??
    By dac in forum C++ Programming
    Replies: 7
    Last Post: 03-10-2006, 12:42 PM
  4. cin not allowing input after first use of function
    By Peter5897 in forum C++ Programming
    Replies: 5
    Last Post: 01-31-2006, 06:29 PM
  5. Problems about gcc installation
    By kevin_cat in forum Linux Programming
    Replies: 4
    Last Post: 08-09-2005, 09:05 AM