int main()
{
int one=0;
int two=0;
int placeholder=0;
cout << "Please enter an integer";
cout << "Please enter one more integer";
cin >> one >> two;
placeholder=one+two;
cout << placeholder;
placeholder=one-two;
cout << placeholder;
placeholder=one*two;
cout << placeholder;
placeholder=one/two;
cout << placeholder;
}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
for C++? I really only use C, so I'm not sure. I compiled your program fine. Have you successfully compiled other programs?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2007-08-20
"newest version"!? What version number would that be? It is displayed on the applications title bar, and in the about box.
Regardless of your code (and its use of deprecated headers), the crash appears to be in the IDE rather than your application. It is important therefore that you explain exactly when it crashes, and the steps you take to reproduce the crash. Also you did not mention the OS version.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Have the newest version of Bloodshed, when I wrote my first C++ app, the compiler gives the following error:
"Access violation at address 00403CA0 in module DevCpp.exe. Read of address 371383AE"
Any ideas?
Here is my code:
include <stdio.h>
include <iostream.h>
int main()
{
int one=0;
int two=0;
int placeholder=0;
cout << "Please enter an integer";
cout << "Please enter one more integer";
cin >> one >> two;
placeholder=one+two;
cout << placeholder;
placeholder=one-two;
cout << placeholder;
placeholder=one*two;
cout << placeholder;
placeholder=one/two;
cout << placeholder;
}
Shouldn't you use:
include <cstdlib>
include <iostream>
for C++? I really only use C, so I'm not sure. I compiled your program fine. Have you successfully compiled other programs?
"newest version"!? What version number would that be? It is displayed on the applications title bar, and in the about box.
Regardless of your code (and its use of deprecated headers), the crash appears to be in the IDE rather than your application. It is important therefore that you explain exactly when it crashes, and the steps you take to reproduce the crash. Also you did not mention the OS version.
Clifford