本文整理汇总了C++中Display::SetWarna方法的典型用法代码示例。如果您正苦于以下问题:C++ Display::SetWarna方法的具体用法?C++ Display::SetWarna怎么用?C++ Display::SetWarna使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Display
的用法示例。
在下文中一共展示了Display::SetWarna方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main() {
int fil[6][8];
int i,j;
//inisialisasi
for (i = 0;i <= 5;i++) {
for (j = 0;j <= 7;j++) {
fil[i][j] = 1;
}
}
Display LCD;
LCD.SetJudul(3, 5, 4, 10, 2, 2, 4, "PANAS", "TERANG");
LCD.SetWarna(1,15);
//UBAH NAMA
LCD.SetStrPanel(1,0,"FIDEL CASTRO");
//UBAH STATUS
LCD.SetStrPanel(1,1,"NORMAL");
//UBAH UANG
LCD.SetStrPanel(1,2,"65.000 BUCK");
//UBAH NAMA TANAMAN
LCD.SetStrPanel(2,0,"CANABIS");
LCD.ClearScr();
//string jud;
/*jud = "TT/BB HH:MM RUMAH< , > MUSIM CUACA";
a[1]= "COBAA" ; b[1]= "ABISA";
a[2]= "AJAA" ; b[2]= "INIA";
a[3]= "NIHA" ; b[3]= "COBAA";
a[4]= "TESTINGA" ; b[4]= "TRUAS";
a[5]= "YUHUA" ; b[5]= "MAMPUAS";*/
LCD << fil;
LCD.PrintJudul();
LCD.PrintUtama();
return 0;
}
示例2: main
int main() {
int fil[6][8];
int i,j;
//inisialisasi
for (i = 0;i <= 5;i++) {
for (j = 0;j <= 7;j++) {
fil[i][j] = 1;
}
}
Display LCD;
LCD.SetJudul(3, 5, 4, 10, 2, 2, 4, "BADAI", "CERAH");
LCD.SetWarna(1,15);
//UBAH NAMA
LCD.SetStrPanel(1,0,"FIDEL CASTRO");
//UBAH STATUS
LCD.SetStrPanel(1,1,"NORMAL");
//UBAH UANG
LCD.SetStrPanel(1,2,"65.000 BUCK");
//UBAH TANAMAN
LCD.SetStrPanel(2,0,"CANABIS");
LCD.SetStrPanel(2,1,LCD.MakeUmur(15));
LCD.SetStrPanel(2,3,"DEWASA METER:");
LCD.SetStrPanel(2,4,LCD.Bar(10,10));
LCD.SetStrPanel(2,6,"PANEN METER:");
LCD.SetStrPanel(2,7,LCD.Bar(10,15));
//UBAH POS PLAYER
LCD.SetPlayer(2,2,1);
LCD.SetKurcaci1(4,4,2);
LCD.SetKurcaci2(1,1,3);
LCD.SetKurcaci3(1,4,4);
//SET STATUS KURCACI
LCD.SetStrPanel(3,2,LCD.StKurcaci(1));
LCD.SetStrPanel(3,4,LCD.StKurcaci(1));
LCD.SetStrPanel(3,6,LCD.StKurcaci(1));
//SET INVENTORI
LCD.SetStrPanel(4,1,"GAN");LCD.SetStrPanel(4,2,LCD.ToSTR(2));
LCD.SetStrPanel(4,3,"MAR");LCD.SetStrPanel(4,4,LCD.ToSTR(14));
LCD.SetStrPanel(4,5,"TOB");LCD.SetStrPanel(4,6,LCD.ToSTR(3));
//SET ODMETER
LCD.SetODMeter(91);
LCD.ClearScr();
//string jud;
/*jud = "TT/BB HH:MM RUMAH< , > MUSIM CUACA";
a[1]= "COBAA" ; b[1]= "ABISA";
a[2]= "AJAA" ; b[2]= "INIA";
a[3]= "NIHA" ; b[3]= "COBAA";
a[4]= "TESTINGA" ; b[4]= "TRUAS";
a[5]= "YUHUA" ; b[5]= "MAMPUAS";*/
LCD << fil;
LCD.Print();
return 0;
}