标题:可以改变输出字体颜色的程序
只看楼主
luo123
Rank: 1
等 级:新手上路
威 望:2
帖 子:324
专家分:0
注 册:2007-4-13
 问题点数:0 回复次数:0 
可以改变输出字体颜色的程序
#include <conio.h>
int main()
{int color; char p;
while(1)
{
for(color=0;color<8;color++)
{ p=getch();
if(p=='e') break;
else {
textbackground(color);
cprintf("This is color %d\r\n",color);
cprintf("Press any key to continue\r\n");
printf("'e' to exit");       }
}
if(p=='e') break;
}
return 0;
}
搜索更多相关主题的帖子: 字体 颜色 输出 
2007-12-05 15:48



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-190571-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.015412 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved