You are on page 1of 2

I.

PENDAHULUAN a. Pengenalan C++ (apa itu C++) b. Struktur dasar program C++ i. Directives (#include) ii. namespace iii. main() iv. statement v. return statement c. Variable dan Tipe Data d. Operator e. Standard output (cout) f. Standard input (cin)

II.

Langkah kerja a. Membuat project baru di CodeBlocks / CodeLite b. Meng-compile source code

III.

Isi a. Soal. b. Penyelesaian secara matematika. c. Source code. (bentuk teks, jangan gambar).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 //simple c++ program #include<iostream> // header file included using namespace std; int main() { int a=10,b=34; cout <<"simple c++ program" << endl; // c++ statement cout <<"hello world" << endl; cout << a << b; return 0; } // returning no errors

d. Snapshot running program.

You might also like