Beruflich Dokumente
Kultur Dokumente
color Paint_1 = C'128,128,128'; // The value of gray was assigned to the variable
color Colo = C'0x00,0x00,0xFF'; // The value of blue was assigned to the variable
color BMP_4 = C'0xFF,0x33,0x00' // The value of red was assigned to the variable
color K_12 = 0xFF3300; // The value of red was assigned to the variable
color N_3 = 0x008000; // The value of green was assigned to the variable
color Color = 16777215; // The value of white was assigned to the variable
color Alfa = 32768; // The value of green was assigned to the variable
color A = Red; // The value of red was assigned to the variable
color B = Yellow; // The value of yellow was assigned to the variable
color Colorit = Black; // The value of black was assigned to the variable
color B_21 = White; // The value of white was assigned to the variable
b. Beberapa variabel dengan tipe yang sama dapat di deklarasikan dalam satu baris
Contoh :
int Var_1, Box, Comm; // Deklarasi beberapa variabel dalam satu baris
Jenis variabel yang dideklarasikan sendiri, dan pemanggilan berikutnya tidak usah di beri
jenis variabel lagi di depannya
+ Penjumlahan x+2
- Pengurangan x - 3, y = - y
* Perkalian 3*x
/ Pembagian x/5
b. Operasi Penugasan
|| ATAU (Logika x <5 || x> BENAR (1), jika ada nilai dari nilai-nilai itu benar
Disjungsi) 7
&& DAN (Logika x == 3 && BENAR (1), jika semua nilai benar
Penghubung) y <5
e. Operasi Biwise