当前位置: 首页>>代码示例>>C++>>正文


C++ Display::ClearScr方法代码示例

本文整理汇总了C++中Display::ClearScr方法的典型用法代码示例。如果您正苦于以下问题:C++ Display::ClearScr方法的具体用法?C++ Display::ClearScr怎么用?C++ Display::ClearScr使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Display的用法示例。


在下文中一共展示了Display::ClearScr方法的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;
}
开发者ID:maspriyono,项目名称:drogascpp,代码行数:38,代码来源:Display1.cpp

示例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;
}
开发者ID:maspriyono,项目名称:drogascpp,代码行数:61,代码来源:Display2.cpp


注:本文中的Display::ClearScr方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。