Thread: Am I on drugs ??

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    34
    Exactly...thats why the title "Am I on Drugs"

    I never had the problem using Visual Studio 2005 or.NET

    However when using Visual Studio 6.0 the problem is rampant....

    I did some more googling on it and came across this...

    Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section. This problem was corrected in Microsoft Visual C++ .NET.

    this is the example code on the Microsoft site to illustrate the bug..

    Code:
    The following sample program demonstrates the bug:
    
    //test.cpp
    //Compiler options : /GX
    #include <string>
    #include <iostream>
    int main () {
    	std::string s,s2;
    	std::getline(std::cin,s);
    	std::getline(std::cin,s2);
    	std::cout << s <<'\t'<< s2 << std::endl;
    	return 0;
    }
    Actual Results:
    Hello<Enter Key>
    World<Enter Key>
    <Enter Key>
    Hello World

    Expected Results:
    Hello<Enter Key>
    World<Enter Key>
    Hello World

    link to the site : http://support.microsoft.com/?scid=k...0015&x=15&y=16

    what a pain...
    I am in love with c++...Hence i broke off with my girl

  2. #2
    Registered User
    Join Date
    Jan 2006
    Posts
    34
    Sorry didnt see that Tonto had already answered it and given the link

    Thanks again all

    lol i got this 6.0 compiler so i could learn MFC since all the online tutorials for MFC are based on VS 6.0.....

    NVM i will just hit ENTER twice :P
    I am in love with c++...Hence i broke off with my girl

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Drugs and schools
    By InvariantLoop in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 04-27-2004, 08:37 PM
  2. Drugs for programmers
    By datainjector in forum A Brief History of Cprogramming.com
    Replies: 76
    Last Post: 11-04-2002, 05:20 AM
  3. Drugs, sex, freindship, and suside.
    By Sentaku senshi in forum A Brief History of Cprogramming.com
    Replies: 55
    Last Post: 08-06-2002, 02:28 AM
  4. Have you ever experimented with illegal drugs?
    By Brian in forum A Brief History of Cprogramming.com
    Replies: 96
    Last Post: 03-11-2002, 09:06 PM
  5. Don't do drugs...
    By Hillbillie in forum A Brief History of Cprogramming.com
    Replies: 44
    Last Post: 12-30-2001, 01:32 AM