### need help

hi
i want to make a simple calculater on c++ can any one help me
i'm using visual c++ 2010 express
Of course we can help you. Post what you have so far, let us know what you are struggling with, and we'll be happy to offer suggestions to help you complete your project.
i have started to learn c++
and i can make a mathematic operations but i want to make a calculater to learn and make the user make another operations(don't close the program)
that's my Email :plymaker100@yahoo.com
This isn't mine, I found this source code in about 30 seconds using google: http://www.cpp-home.com/forum/viewtopic.php?f=4&t=16349. But it shows you one example of a simple calculator:

 ``123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384`` ``````#include #include #include using namespace std; int main() { while(true) { //add here signed long int num1, num2; signed long int ans; cout<<" SIMPLE CALCULATOR! " << endl; cout<< endl; cout<<"1. Addition " << endl; cout<<"2. Subtraction " << endl; cout<<"3. Multiplication " << endl; cout<<"4. Division " << endl; cout<<"5. Exit Program " << endl; cout<< endl; cout<<"Please chose a number<1-5>: " ; cin >> ans; if (ans == 1) { cout<< endl; cout<<"(Simple Addition) " << endl; cout<<"Please enter first number: " ; cin >> num1; cout<<"Please enter second number: " ; cin >> num2; cout << endl; cout <<"The answer is: " << num1 + num2 << endl; } if (ans == 2) { cout<< endl; cout<<"(Simple Subtraction) " << endl; cout<<"Please enter first number: " ; cin >> num1; cout<<"Please enter second number: " ; cin >> num2; cout << endl; cout <<"The answer is: " << num1 - num2 << endl; } if (ans == 3) { cout<< endl; cout<<"(Simple Multiplication) " << endl; cout<<"Please enter first number: " ; cin >> num1; cout<<"Please enter second number: " ; cin >> num2; cout << endl; cout <<"The answer is: " << num1 * num2 << endl; } if (ans == 4) { cout<< endl; cout<<"(Simple Division) " << endl; cout<<"Please enter first number: " ; cin >> num1; cout<<"Please enter second number: " ; cin >> num2; cout << endl; cout <<"The answer is: " << num1 / num2 << endl; } if (ans == 5) { cout << endl; cout << endl; cout<< "Thank You! "; exit (1); } } //end here system("pause"); return 0; }``````
of course there is always the famous stroustrop calculator
Topic archived. No new replies allowed.