Just putting a getch() does not change anything. It is still a console application (notice I didn't say DOS application, b/c there is a difference between DOS programming and console programming).

however way you code it:

Code:
#include <iostream>
   using std::cout;
   using std::cin;

int main()
{
   cout << "Hello world\n";
   
   cin.get();   // Pauses until enter is pressed

   return 0;
}
== and this ==

Code:
#include <iostream>
   using std::cout;

#include <conio.h>

int main()
{
   cout << "Hello world\n";
   
   getch();   // Pauses until key is pressed

   return 0;
}
... will still run in console windows without having to open up a cmd-term.