1 / 3

MODUL KULIAH STRUKTUR DATA

MODUL KULIAH STRUKTUR DATA. TANGGAL REVISI TANGGAL BERLAKU KODE DOKUMEN. : : :. ---- 04 September 2006 ----. STRUKTUR DATA (3 SKS) PRASYARAT : - PPDE / PTI - ALGORITMA PEMROGRAMAN - PROGRAMMING C/C++/Visual C++ PERKULIAHAN : 16 x Pertemuan Terdiri dari: -14 x Tatap Muka

kaethe
Télécharger la présentation

MODUL KULIAH STRUKTUR DATA

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MODUL KULIAH STRUKTUR DATA TANGGAL REVISI TANGGAL BERLAKU KODE DOKUMEN : : : ---- 04 September 2006 ---- STRUKTUR DATA (3 SKS) PRASYARAT : - PPDE / PTI - ALGORITMA PEMROGRAMAN - PROGRAMMING C/C++/Visual C++ PERKULIAHAN : 16 x Pertemuan Terdiri dari: -14 x Tatap Muka - 2 x Ujian (UTS dan UAS) Session 1 Edited By Al-Bahra. L.B, S. Kom, M. Kom http://www.mercubuana.ac.id Pertemuan Ke : 1 / Page 1 - 20

  2. MODUL KULIAH STRUKTUR DATA TANGGAL REVISI TANGGAL BERLAKU KODE DOKUMEN : : : ---- 04 September 2006 ---- Bahasa Program Turbo C++ or Borland C++ Bahasa Program C++ adalah bahasa program yang mendukung program bersifat procedural dan program object oriented. Dalam hal ini hanya dibahas tentang program bersifat procedural. PROSES OUTPUT INPUT Ketentuan Program Bahasa C++ : Statement Source Code C++ ditulis dengan huruf kecil . Operator Arithmatika * / + - % : : : : : Perkalian Contoh 2*3 Pembagian Contoh 6/3 Penjumlahan Contoh 4 + 5 Pengurangan Contoh 6 – 4 Modulus ( Sisa Pembagian ) Contoh 7%2 Operator Relasi == >= <= > < != : : : : : : Sama dengan (bukan penugasan/memberi nilai ke Variabel Lebih Besar sama dengan Lebih Kecil sama dengan Lebih Besar Lebih Kecil Tidak Sama dengan Operator Logika && || ! : And : Or : Not Session 1 Edited By Al-Bahra. L.B, S. Kom, M. Kom http://www.mercubuana.ac.id Pertemuan Ke : 1 / Page 3 - 20

  3. MODUL KULIAH STRUKTUR DATA TANGGAL REVISI TANGGAL BERLAKU KODE DOKUMEN : : : ---- 04 September 2006 ---- CONTOH Program Sederhana C++ Output : Menampilkan kalimat /* Program Ke-1 */ #include <iostream.h> #include <conio.h> main( ) { cout<<”HAI SELAMAT MENGGUNAKAN C++ \n ”; } Setelah selesai diketik Jalankan programnya : MENJALANKAN PROGRAM : Tekan CTRL+F9 MELIHAT OUTPUT (HASIL) PROGRAM : Tekan Alt + F5 jika tidak terjadi kesalahan maka akan tampil : HAI SELAMAT MENGGUNAKAN C++ Perintah Input/Output a. Perintah Output cout Bentuk umum cout << ”Keterangan….” << Variabel; << - operator penyisipan / peletakan untuk Output Contoh 1 cout <<”AKU MAKAN”; Session 1 Edited By Al-Bahra. L.B, S. Kom, M. Kom http://www.mercubuana.ac.id Pertemuan Ke : 1 / Page 5 - 20

More Related