MSVC Console app - two enters?

This is a discussion on MSVC Console app - two enters? within the Windows Programming forums, part of the Platform Specific Boards category; Please tell me if I'm losing my mind. It has become increasingly clear that whenever I create a console app ...

  1. #1
    Magically delicious LuckY's Avatar
    Join Date
    Oct 2001
    Posts
    856

    MSVC Console app - two enters?

    Please tell me if I'm losing my mind. It has become increasingly clear that whenever I create a console app in VC it requires two enters to read data (from cin). I compile the same source with borland and have no problem. Are you familiar with this odd happenstance or am I merely losing my mind? How would one go about fixing it?

    Just to prove I'm not crazy (or for that matter, that I am), I'm attaching a tiny VC project to demonstrate...

    Btw, I'm using VC6. This problem never used to happen before I upgraded..

    [edit]
    Hmm.. I was just thinking.. This is talking about MSVC which is why I posted on the Windows board, but it's a console app, so perhaps it should be moved by one of you helpful administrators... ?
    [/edit]
    Attached Files Attached Files
    Last edited by LuckY; 12-30-2003 at 02:08 PM.

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    http://support.microsoft.com/default...NoWebContent=1

    It's a bug with VC++6....but there's a fix in the above article

  3. #3
    Magically delicious LuckY's Avatar
    Join Date
    Oct 2001
    Posts
    856
    Perfection..

    Thanks a lot Fordy.

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,699
    Fixes for Library Bugs in VC++ V5.0/V6.0

    Damn you Fordy for stealing my glory.

    gg

  5. #5
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,699
    Also, take a look at STLPort as a replacement for Microsoft's STL implementation.

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 28
    Last Post: 10-30-2008, 04:52 PM
  2. Console app termination
    By C+/- in forum C++ Programming
    Replies: 2
    Last Post: 05-24-2008, 12:29 PM
  3. Console App w/ Threads and Events?
    By sean in forum C# Programming
    Replies: 1
    Last Post: 07-02-2004, 01:16 AM
  4. Need help migrating console app to windows app
    By DelphiGuy in forum C++ Programming
    Replies: 1
    Last Post: 03-14-2004, 07:05 PM
  5. Project Builder console app
    By Luigi in forum C++ Programming
    Replies: 0
    Last Post: 12-28-2002, 07:57 PM

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