这篇教程C++ textcolor函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中textcolor函数的典型用法代码示例。如果您正苦于以下问题:C++ textcolor函数的具体用法?C++ textcolor怎么用?C++ textcolor使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了textcolor函数的27个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: codevoid code() { int x1,y1,cl; int x=28,y=4; int p=28,q=4; int r=28,s=4; int i=28; int j=0; char c; textcolor(0); do { if(y+5>17&&x==i) { gover(); getch(); exit(1); } if(q+5>17&&p==i) { gover(); getch(); exit(1); } if(s+5>17&&r==i) { gover(); getch(); exit(1); } clrscr(); gframe(); if (j>7) { if(q==17) { q=4; p=28+(7*(j%3)); } textcolor(15); object(p,q); q++; } if (j>15) { if(s==17) { s=4; r=28+(7*((j+1)%3)); } textcolor(15); object(r,s); s++; } if(y==17) { y=4; x=28+(7*((j+2)%3)); } textcolor(15);// object(x,y); y++; textcolor(1); gotoxy(i,18); cprintf(" ^ ^ "); gotoxy(i,19); cprintf("||@*@||"); gotoxy(i,20); cprintf("||***||"); gotoxy(i,21); cprintf(" *** "); gotoxy(i,22); cprintf(" *** "); gotoxy(i,23); cprintf("||***||"); gotoxy(i,24); cprintf("||***||"); mouseposi(&x,&y,&cl); if(cl==1&&i>34) i=i-7; if(cl==2&&i<36) i=i+7; j++; delay(300) ; }while(!kbhit()); }
开发者ID:gnischay2,项目名称:Car-Racing-Game,代码行数:93,
示例2: mainintmain (int argc, char **argv){ int dat_count; /* size of the dat array */ int i; int mono = 0; /* running on monochrome monitor */ dat_t *dat_ary; /* the dat file array */ inst_t ret; /* no. of errors, warnings */ struct text_info ti; /* (borland) for gettextinfo */ /* Open the language catalog */ cat = catopen ("install", 0); /* Check command line */ for (i = 1; i < argc; i++) { if (strcmpi(argv[i], "/mono") == 0) mono = 1; else if (strcmpi(argv[i], "/nopause") == 0) nopauseflag = 1; else if (strcmpi(argv[i], "/nolog") == 0) wantlog = 0; else if ( (strcmpi(argv[i], "/src") == 0) && (i+1 < argc)) { fromdirflag = 1; i++; strcpy(fromdir+2, argv[i]); } else if ( (strcmpi(argv[i], "/dst") == 0) && (i+1 < argc)) { destdirflag = 1; i++; strcpy(destdir+2, argv[i]); } else { fprintf (stderr, catgets (cat, SET_USAGE, MSG_USAGE, MSG_USAGE_STR)); exit (1); } } /* unzip overwrites screen with warning if TZ not set, so check */ /* and if not set, then set for us to GMT0, which means no offsets */ if (getenv("TZ") == NULL) putenv("TZ=GMT0"); /* Read dat file */ dat_ary = dat_read ("INSTALL.DAT", &dat_count); if (dat_ary == NULL) { if (dat_count > 0) { fprintf (stderr, catgets (cat, SET_ERRORS, MSG_ERRALLOCMEMDF, MSG_ERRALLOCMEMDF_STR)); exit (2); } else /* Either error reading file, eg no file, or file has no entries */ { fprintf (stderr, catgets (cat, SET_ERRORS, MSG_ERREMPTYDATAFILE, MSG_ERREMPTYDATAFILE_STR)); exit (3); } } /* Get localized "Yes" and "No" strings */ getLocalizedYesNo(); /* register our SIGINT handler (Ctrl-C) */ registerSIGINTHandler(); /* Start the install */ /* save current setting so we can restore them */ gettextinfo (&ti); /* setup screen colors then draw the screen */ if (mono) { textbackground (BLACK); textcolor (LIGHTGRAY); } else { textbackground (BLUE); textcolor (WHITE); } repaint_empty(); gotoxy (2, 3); cat_file ("COPYR", 18); pause(); repaint_empty(); gotoxy (2, 3); cat_file ("OEM", 18); pause();//.........这里部分代码省略.........
开发者ID:TijmenW,项目名称:FreeDOS,代码行数:101,
示例3: affichvoid affich(char map[20][38], int score, int bonus, int frame, int vies){/*NOTE : Map prend 20 de hauteur et 38 de largeur*/ int i, j; system("CLS");//Clean textcolor(15); printf("Deplacez le pacman a l'aide des touches z(haut), q(gauche), s(bas) et d(droite)./nTentez d'attraper les %c pour gober les fant C++ textdomain函数代码示例 C++ textblock_append函数代码示例
|