标题:[求助]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



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




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

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