I use visual C++.
When I do this code and compile it -

Code:
#include <iostream>
#include <stdio>
int main()
{
char str[100];
cout << "Enter a word: \n";
gets (str);
return 0;
}
it workd like

Code:
#include <iostream>
#include <stdio>
int main()
{
char str[100];
gets (str);
cout << "Enter a word: \n";
return 0;
}
I meen that the "gets" workd before the "cout"

Why ???