lolimzook
Number of posts: 1 Age: 29 Location: somewhere Registration date: 2008-10-09
 | Subject: C++ Request Thu Oct 09, 2008 11:33 am | |
| Errm, I have a C++ request, could anyone post the script to a calculator in c++? |
|
Will Admin

Number of posts: 27 Age: 21 Location: New York Registration date: 2008-08-29
 | Subject: Re: C++ Request Fri Oct 10, 2008 12:32 pm | |
| i will make text tutorials. i guess my first one will be a calculator. thanks for your suggestion. a text tutorials section will appear soon so make sure to keep checking _________________   --Forum and website owner |
|
Hatton7 Beginner
Number of posts: 20 Age: 18 Location: England Registration date: 2008-09-06
 | Subject: Re: C++ Request Sat Oct 11, 2008 7:27 am | |
| #include
using namespace std;
int a;
int main(){
int b; int c;
cout << "Enter a number: "; cin >> a;
cout << "Enter a second number: "; cin >> b;
c = a+b;
cout << "The sum is: " << c << "\n";
system("pause");
}
As far as i can remember i just opened a console application, not too sure thoguh This works in bloodshed C++, but from what i can tell it can only jsut simply add so yeah, but its better then nothing . |
|