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..
Actual Results: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; }
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...