我的vs 6.0 c 的 system(“cls”); 清屏 函数 不能用了 怎么回事? 谢谢
时间:2008-06-22 08:35:45
来源:论坛整理 作者: 编辑:chinaitzhe
我的vs 6.0 c 的 system(“cls”); 清屏 函数 不能用了 怎么回事? 谢谢
网友回复:C
#include <cstdlib>
C
#include <stdlib.h>
网友回复:头文件都加了,可是没有用。
网友回复:我之前的编译器用的还好使,可是重装机器后重新下vc就不能用system了,why?
网友回复:报的是什么错误? .
网友回复:baidu之
or
Google之
网友回复:应该是你改了Windows的环境变量。 你找一个正常的电脑,抄回来就行了。
网友回复:错误信息是什么?
把它copy出来
网友回复:没有报错,就是没有清屏,我的环境变量假如有问题的话,为什么我在run->cmd->cls却好使呢?不是系统变量的问题吧?
网友回复:http://soft.yesky.com/os/win/243/2023243_1.shtml
http://dev.csdn.net/article/73/73185.shtm
网友回复:http://topic.csdn.net/t/20040917/10/3381944.html
已经解决,谢谢各位。
网友回复:Header File
stdlib.h
Category
Process Control Routines
Prototype
int system(const char *command);
int _wsystem(const wchar_t *command);
Description
Issues an operating system command.
system invokes the operating system command processor to execute an operating system command, batch file, or other program named by the string command, from inside an executing C program.
To be located and executed, the program must be in the current directory or in one of the directories listed in the PATH string in the environment.
The COMSPEC environment variable is used to find the command processor program, so it need not be in the current directory.
Return Value
If command is a NULL pointer, system returns nonzero if a command processor is available.
If command is not a NULL pointer, system returns 0 if the command processor was successfully started.
If an error occurred, a -1 is returned and errno is set to one of the following:
ENOENT Path or file function not found
ENOEXEC Exec format error
ENOMEM Not enough memory
网友回复:system(“cls”);
system("cls"); //用了中文的引号?
关键字:vs,6.0,system,cls,清屏,
下一篇:下面没有链接了











文章评论
共有 0 位网友发表了评论 此处只显示部分留言 点击查看完整评论页面