Posted by : setiosudi Friday, 13 November 2015

Assalamualaikum
hallo..
saya sekarang akan membahas tentang bahasa pemrograman c++
1. Pemrograman terstruktur (C++)
J  Pemrograman tingkat menengah (Middle Language)
J  Bersifat Case Sensitive (Penggunaan huruf kecil dan besar berpengaruh)
J  Memulai C++

Start – All program – Borland C++5.02 – Borland C++
jika belum punya aplikasinya monggo downloud dulu disini..
File – New – text edit


J  Struktur Dasar C++
#include <file include>
Main()
{
Pernyataan program;
}
J  File include dasar input output
  1. #include <stdio.h> / #include “stdio.h”
Stdio = Standart Input Output
Untuk menjalankan fungsi input dan cetak
Input   : scanf
Cetak : print
2.  #include <iostream.h> / #include “iostream.h”
Iostream = Input Output Stream
Untuk menjalankan fungsi input dan cetak
Input     : cin
Output  : cout 
3. #include <conio.h> / #include “conio.h”
Conio = Console Input Output
Untuk menjalankan fungsi getch dan clrscr
Getch   : untuk menahan tampilan
Clrscr   : untuk membersihkan layar
Contoh program sederhana
  #include <iostream.h>
  #include <conio.h>
  Main()                                                 
  {
   Cout<< “ Selamat Belajar C++ ”;
   Getch();
  }


J  Compile File
Menterjemahkan program dari bahasa manusia kedalam bahasa yang dimengerti komputer
Klik project – compile atau
Alt + F9
J  Menjalankan File
Klik debug – Run atau
Ctr + F9
Hasil Program  :
Selamat Belajar C++
 
 

     sekian dulu shere dari saya 
salam blogger

Leave a Reply

Subscribe to Posts | Subscribe to Comments

TERIMAKASIH TELAH BERKUNJUNG DI WEB SAYA TERUS TUNGGU POS - POS YANG LAINNYA

- Copyright © tecknology and programing - Blogger Templates - Powered by Blogger - Designed by Johanes Djogan -