Why this program works fine with bc++ but it exit just ater getting the value of x from console in vc++?
#include <iostream.h>
void main()
{
int x;
cin >> x;
// cout<<endl;
x=x-10;
cout << x;
cin.get();
}
|
Results 1 to 6 of 6
Thread: console programThreaded View
|
Click Here to Expand Forum to Full Width |