Save the result screen

Hi! how can i save the result screen?
I write a program to show numbers between 10 and 15 and a black window open, shows my number and then close very quikly. how can i stop it from closing result window?
I'm using borland c++.
Thanks!
closed account (1yR4jE8b)
this is simple technique that I like to use:


1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>
#include <cstdio>


int main()
{
     //do stuff

     std::cout << "\nPress Enter to Continue...";
     getc(stdin);
     return 0;
}
Last edited on
use cin.get() befor return 0
Topic archived. No new replies allowed.