| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 606 人关注过本帖
标题:[求助]C++程序中怎样设置文本颜色?
只看楼主 加入收藏
bluesky1322
Rank: 1
等 级:新手上路
帖 子:57
专家分:0
注 册:2006-10-11
收藏
 问题点数:0 回复次数:0 
[求助]C++程序中怎样设置文本颜色?

我想像C语言那样包含进去conio.h的头文件
用textmode(),textbacground()等函数改变屏幕的显示,
就想下面一段程序,在TC2.0环境下编译通过并正确执行,
但VC6.0中没有
textmode(C80);
textbackground(BLUE);
textcolor()
等函数啊?
难道C++就不能进行文本屏幕的编辑与设计吗?



/*C语言的程序:*/
#include <conio.h>
main()
{
int i;
textmode(C80);
textbackground(BLUE);
textcolor(7);
printf("%s", "prees any key to continue");
getch();
clrscr();
gotoxy(10,10);
cprintf("%s","welcome Your");
gotoxy(10,14);
cprintf("%s","Let's study Turbo C.");
gotoxy(17,10);
getch();
clreol();
gotoxy(17,14);
getch();
delline();
getch();
}

搜索更多相关主题的帖子: 文本 颜色 
2006-12-26 15:16
快速回复:[求助]C++程序中怎样设置文本颜色?
数据加载中...
 
   



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

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