共8种,按任一键会出现下一种,按8次即退出。
#include <conio.h>
void main(void)
{
int color;
for (color = 0; color < 8; color++)
{
textbackground(color);
cprintf("This is color %d\r\n", color);
cprintf("Press any key to continue\r\n");
getch();
}
}
#include <conio.h>
void main(void)
{
int color;
for (color = 0; color < 8; color++)
{
textbackground(color);
cprintf("This is color %d\r\n", color);
cprintf("Press any key to continue\r\n");
getch();}
}
你可以使用这个链接引用该篇文章 http://publishblog.blogchina.com/blog/tb.b?diaryID=1207846
|
- 评论人:kl;k
2006-03-19 11:15:21
|
|||
{
|
||||