but I've never run into this before. Why would this code see the while loop before the cout statement. Compile it, use escape to exit the loop and then the cout statement will appear even though it comes before the while loop in the code. Using the standard namespace fixes the problem. Why?

Code:
#include <conio.h>
#include <iostream.h>


int main()
{
	bool done = false;
	cout << "What's going on here?!\n";
	while(!done)
	{
	   if(getch() == 27)
		   done = true;
	}
return 1;
}