在C语言中,程序有一个是system("CLS")什么意思?

如题所述

system("CLS") 是在C语言程序中,调用系统命令cls完成清屏操作。

system函数是C语言提供的与操作系统衔接的函数,函数原型如下:
#include <stdlib.h> //所在头文件
int system(const char *command); //参数为操作系统命令
函数功能:execute a shell command 执行一个操作系统命令
如:
system("time /t") ;显示时间
system("dir"); //列目录
温馨提示:答案为网友推荐,仅供参考
相似回答