Visual C + + 2010 Simple Math
Yesterday I had about providing visual basic 2010 tutorial by making calculator, which is not much different, but this time we will use the language C + + console application, before starting the tutorial would be nice if we prepare the Coffee and Cigarettes first braaay. : ")) Hehehe .. cekidoot bro. . . .
- Open Visual C + + 2010
- Create a new project -> File -> New Project -> Win32 Console Application
- Will appear later wizard, click Next -> Check the Empty Project and Finish
- Later click on the solution explorer, you will find a folder
- External Dependencies
- Header Files
- Resource Files
- Source Files
- Right click the Source Files -> Add -> New Item -> C + + File (. Cpp) berinama "variable"
- Next type the following Code
<iostream> # Include
# include "conio.h"
using namespace std;void main () {
int bil1;
int bil2;
int result;
cout << "Enter first number:";
cin >> bil1;
cout << endl;
cout << "Enter the Numbers:";
cin >> bil2;
cout << endl;
result + = bil1 bil2;
cout << result;_getch ();
}
- Test program, and if successful will appear as shown below
The picture above is the program we are working to add the number 1 and number 2
If there is trouble you can email or sms me at adeyahya@hotmail.com / +6287728128156
thank you for following this tutorial, please download the source code in http://www.ziddu.com/download/19170063/simpelmatematika.zip.html