Wednesday 17 October 2018
Belajar Algoritma untuk Pointer dan Array
Pointer menggunakan lambang *
bisa digunakan berkali kali contoh
angka1
*angka2
**angka3
***angka4
yang dimana:
angka4=angka3=angka2=angka1
perubahan 1 value akan diikutin oleh angka angka lainnya
untuk array diajarin array 1D 2D dan array 3D walaupun yang array 3D tidak terlalu dijelaskan
untuk array 1D formatnya
char xxx[ i ]
array 2 dimensi
char xxx [ i ] [ j ]
digunakan untuk RAM karena sudah tersusun rapi
mengassign lebih dari 1 value ke 1 alamat
baris x kolom x tinggi
[ i ] [ j ] [ k ]
Christopher Suteja
Bina Nusantara 2201811656
Rabu, 17 Oktober 2018
Rabu, 10 Oktober 2018
Wednesday 10 October 2018
Algorithma Program Control Repetition
While vs Do While
Do While Need Input first like ATM machine
Syntax for
for(exp1;exp2;exp3)statement;
exp1 = initialization
exp 2 = condition
exp3 = increament or decreament
exp1,2,3 are optional
Learning How to use for with making pattern in C++
while
while(exp)statement;
while boolean expression
!=0
Do while
Do{statement;}while{exp};
using break; to force end the loops and Ctrl+c to quit from exe
Christoper Suteja
Bina Nusantara 2201811656
Algorithma Program Control Repetition
While vs Do While
Do While Need Input first like ATM machine
Syntax for
for(exp1;exp2;exp3)statement;
exp1 = initialization
exp 2 = condition
exp3 = increament or decreament
exp1,2,3 are optional
Learning How to use for with making pattern in C++
while
while(exp)statement;
while boolean expression
!=0
Do while
Do{statement;}while{exp};
using break; to force end the loops and Ctrl+c to quit from exe
Christoper Suteja
Bina Nusantara 2201811656
Langganan:
Komentar (Atom)