system("pause");

(Oder dein Programm direkt aus der Konsole / Shell raus starten dann kannste dir das auch sparen )