My friend was writing a very simple 32console app in visual C++ to count the number of a's in a sentence. He had a while loop in there but it kept getting stuck in the loop. After completely stripping down the program it looked something like this...
Nothing special. Added the cout to see what was up with the iterator...Hit execute and the console gives us thisPHP Code:
#include <iostream>
using namespace std;
main()
{
int i=0;
while(i<100)
{
i++;
cout<<i;
}
return 0
}
12222222222222222222222222222222222222222222222222 222222222222222... etc.
It is a bug Microsoft is aware of and they give instructions on how to edit Visual studio to correct the bug(no patch?)
It seems like a bug that could potentially cause some serious headaches for someone who might not know of the bug.