- #1
Ascendant78
- 328
- 0
I am trying to do an introductory course on C++ through OCW (MIT). However, there is this one they tell you to try that I keep running into a problem with. This is the information they tell us to input:
#include <iostream>
using namespace std;
int main (){
int x;
cin >> x;
cout << x/2 << "\t" << x*2;
return 0;
}
-----------------------------
For some reason, I get no output. It seems like it is going to run, but nothing pops up in the window. After I close out the small dos window (or whatever the small black window that opens is called), I get this message at the bottom of Code::Blocks "Process terminated with status -1073741510 (2 minutes, 25 seconds)" Of course the time depends on how long I let it run, but obviously I'm doing something wrong. Can someone tell me what please? Oh, and I am running Windows 7 and have the latest Code::Blocks and MinGW running on my system.
#include <iostream>
using namespace std;
int main (){
int x;
cin >> x;
cout << x/2 << "\t" << x*2;
return 0;
}
-----------------------------
For some reason, I get no output. It seems like it is going to run, but nothing pops up in the window. After I close out the small dos window (or whatever the small black window that opens is called), I get this message at the bottom of Code::Blocks "Process terminated with status -1073741510 (2 minutes, 25 seconds)" Of course the time depends on how long I let it run, but obviously I'm doing something wrong. Can someone tell me what please? Oh, and I am running Windows 7 and have the latest Code::Blocks and MinGW running on my system.