Tuesday, April 17, 2012

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

Capture

  • Later click on the solution explorer, you will find a folder
  1. External Dependencies
  2. Header Files
  3. Resource Files
  4. 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

Capture2

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

Ade Yahya Prasetyo | Author

Saat ini, saya hanyalah seorang pelajar dari kampung, MA UMMUL QURO. Saya sangat tertarik dengan teknologi apalagi tentang bahasa pemograman komputer. Menulis juga menjadi keseharian saya, dan blog ini adalah gambaran alakadarnya tentang tulisan saya.

This is the most recent post.
Older Post

0 comments