Why clrscr() can't work in c++?

TomDebug 2005-01-06 10:12:29
I find the fun in C library,why it didn't work in Vc,how should I clear screen?

ps:
some function can work in Tc,but didn't work in Vc,what should I do????

Thank U All!
...全文
156 18 打赏 收藏 转发到动态 举报
写回复
用AI写文章
18 条回复
切换为时间正序
请发表友善的回复…
发表回复
cizi_nwu 2005-01-11
  • 打赏
  • 举报
回复
hehe,我也是用system("cls");
greenteanet 2005-01-11
  • 打赏
  • 举报
回复
#include<stdio.h>
#include<stdlib.h>
main()
{
int i;
for(i=0;i<10000; i++)
{
printf("*");
if(i%10==0)
printf("\n");
}
system("cls");
return 0;
}
avalonBBS 2005-01-10
  • 打赏
  • 举报
回复
楼主那东东好像是TC等东西下的,不是标准库里的,用system("cls")罗
TomDebug 2005-01-10
  • 打赏
  • 举报
回复
How to draw in vc++?
include what???
zhangfjj 2005-01-07
  • 打赏
  • 举报
回复
Why clrscr() can't work in c++?
=====
Your problem should be "Why clrscr() can't work in vc++?".

idau7 2005-01-07
  • 打赏
  • 举报
回复
include the relative head file in ur code.
idler 2005-01-07
  • 打赏
  • 举报
回复
clrscr() is a function declared in conio.h.
But this function is a part of Borland-style console library. It is not available in VC.
kevinmartin 2005-01-07
  • 打赏
  • 举报
回复
graphics.h is not a standard library,it can't be used in VC.
charkie 2005-01-07
  • 打赏
  • 举报
回复
你们怎么都用E文起来了
bruceteen 2005-01-07
  • 打赏
  • 举报
回复
简单,因为 clrscr 不是 C/C++ 的标准函数,是TC扩展的
acuter 2005-01-07
  • 打赏
  • 举报
回复
同意 Henry0(Enthusiasm,热情!活着就要有热情!对人,对事,对生) 的说法:
::system("cls");
vivovip 2005-01-07
  • 打赏
  • 举报
回复
吼吼
msdn 应该搞一个英文社区
  • 打赏
  • 举报
回复
不懂
murui 2005-01-07
  • 打赏
  • 举报
回复
You should use BCB!
Henry0 2005-01-07
  • 打赏
  • 举报
回复
system("cls");

it is right!
TomDebug 2005-01-06
  • 打赏
  • 举报
回复
And others ,ie
#include <graphics.h>?????
snow810211 2005-01-06
  • 打赏
  • 举报
回复
#include <stdlib.h>
system("cls");
TomDebug 2005-01-06
  • 打赏
  • 举报
回复
Does MSDN can tell me ?

64,649

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧