Hello...Let me tell you about my problem.
I've been trying to figure this out for a pretty long time. Now, whenever I try to compile a console program, it becomes wierd. When I cout before I call a function like "getch()", it carries out the function before the output. Here's an example:
cout << "Hello!\n";
Now, this will usually ask for input before it outputs "Hello!".