Hi there, I've just got a program to compile properly with no errors.
However, my problem is that when i compile and run the program the dos window pops up for not even a second and disappears.
The program is this:
#include<iostream> using namespace std; #include<stdlib.h>
int main() { int x =5; int y =7; cout <<"\n"; cout << x + y << " " <<x * y; cout << "\n"; return 0; }
Is there something i can change in the configuration of the compiler software or do i have to type a command in for each program??
Thanks, Julie.
Log in to post a comment.
Hi there,
I've just got a program to compile properly with no errors.
However, my problem is that when i compile and run the program the dos window pops up for not even a second and disappears.
The program is this:
#include<iostream>
using namespace std;
#include<stdlib.h>
int main()
{
int x =5;
int y =7;
cout <<"\n";
cout << x + y << " " <<x * y;
cout << "\n";
return 0;
}
Is there something i can change in the configuration of the compiler software or do i have to type a command in for each program??
Thanks,
Julie.