您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ textbackground函数代码示例

51自学网 2021-06-03 08:47:16
  C++
这篇教程C++ textbackground函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中textbackground函数的典型用法代码示例。如果您正苦于以下问题:C++ textbackground函数的具体用法?C++ textbackground怎么用?C++ textbackground使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了textbackground函数的29个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: main

int main(int argc, char *argv[]) {	int color;	for (color = 0; color < 8; color++) {		textbackground(color);		printf("This is color %d/r/n", color);		printf("Press any key to continue./n");		getchar();	}	return 0;}
开发者ID:guoqunabc,项目名称:C-Cplusplus,代码行数:11,


示例2: salir

void salir(void) {	textmode(C80);	textbackground(BLACK);	textcolor(LIGHTGRAY);	clrscr();	puts("DPA Software. 1997");	puts("Jairo Alejandro Duarte Avenda¤o.");	_setcursortype(_NORMALCURSOR); /* mostrar de nuevo el cursor */	nosound();	exit(0);}
开发者ID:alejandro-du,项目名称:legacy,代码行数:11,


示例3: SetBackColor

void SetBackColor(int color){    if (color > 7 || color < 0)	color = 7;#ifdef UNIX    Background = colortable[color];#else    textbackground(backtable[color]);#endif}
开发者ID:base698,项目名称:ProQCC,代码行数:11,


示例4: Refa_Zona_Afectata

 void Refa_Zona_Afectata(int x,int y){	for(int i=y-4;i<=y+4;i++)		for(int j=x-4;j<=x+4;j++)			{				gotoxy(j,i);				textcolor(M[i][j].col);				textbackground(M[i][j].bk_col);				cprintf("%s",M[i][j].ch);			}}
开发者ID:StefanTudorFlorea,项目名称:Oldies,代码行数:11,


示例5: select

int	select(void){	int	sel;	char	ch;	int	quit;	screen();	selectwindow();	_setcursortype(_NOCURSOR);	sel=0;	quit=0;	while (!quit)	{		drawlist(sel);		ch=getch();		if (ch==0)			ch=getch();		switch (ch)		{		case	72:  	if (sel>=1) sel--;				break;		case	80:	if (sel<nummods-1) sel++;				break;		case	73:	if (sel>=6) sel-=6; else sel=0;				break;		case	81:	if (sel<nummods-6) sel+=6; else sel=nummods-1;				break;		case	71:	sel=0;				break;		case	79:	sel=nummods-1;				break;		case	59:     if (!isselected(sel+1))					toggle(sel);				defaultmodule=isselected(sel+1);				break;		case	32:	toggle(sel);				break;		case	13:	quit=2;				break;		case	27:	quit=1;				break;		}	}	_setcursortype(_NORMALCURSOR);	window(1,1,80,25);	textbackground(BLACK);	textcolor(LIGHTGRAY);	clrscr();	return	quit-1;}
开发者ID:eswartz,项目名称:emul,代码行数:54,


示例6: errormessage

void errormessage(char far *message){char scbuffer[800];struct text_info inforec;int x1 = 10;int x2 = 10;int y1 = 20;int y2 = 23;if (strchr(message,13) != NULL)x2 += 2*strlen(message)/3 + 4;elsex2 += strlen(message)+4;burp();gettextinfo(&inforec);if (x2-x1 < 17) x2 = x1 + 17;gettext(1,y1,80,y2+1,scbuffer);textbackground(LIGHTGRAY);window(x1+1,y1+1,x2+1,y2+1);clrscr();textbackground(BLACK);textcolor(LIGHTGRAY);window(x1,y1,x2,y2);clrscr();window(x1,y1,x2+1,y2+1);textlineh(1,1,x2-x1+1);textlineh(y2-y1+1,1,x2-x1+1);textlinev(1,1,y2-y1+1,218,192);textlinev(x2-x1+1,1,y2-y1+1,191,217);window(1,1,80,25);gotoxy(x1 + (x2-x1)/2 - 5/2,y1);cprintf(" ERROR ");window(x1+2,y1+1,x2-2,y2-1);gotoxy(1,1);cprintf("%s",message);window(1,1,80,25);delay(1500);puttext(1,y1,80,y2+1,scbuffer);textattr(inforec.attribute);gotoxy(inforec.curx,inforec.cury);window(inforec.winleft,inforec.wintop,inforec.winright,inforec.winbottom);}
开发者ID:tridge,项目名称:junkcode,代码行数:41,


示例7: main

void main(){int k=1;clrscr();textcolor(2);textbackground(0);while (k!=0) k=menue();}
开发者ID:Kichrum,项目名称:C-Programming,代码行数:12,


示例8: mainframe

void mainframe(){char d;textbackground(BLACK);textcolor(RED);_setcursortype(0);clrscr();cprintf(" 
C++ textblock_append函数代码示例
C++ textattr函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。