我有一个关于system(“")函数的请求. [英] I have a request about system("") function.

查看:94
本文介绍了我有一个关于system(“")函数的请求.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对system函数有疑问.

I have a question about system function.

system(const char *);


例如:


For example:

system("cls");    //clear monitor


任何人都可以解释该函数的参数含义吗?


Can anyone explain the meaning of the argument for this function?

thanks.

推荐答案

此函数的参数就是您在控制台中编写的内容.完整列表或可用命令可在以下位置找到:
http://www.microsoft.com/资源/文档/windows/xp/all/proddocs/en-us/ntcmds.mspx?mfr=true [ http://commandwindows.com/command3.htm [
The argument of this function is what you would write in a Console. The full list or available commands can be found there:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?mfr=true[^]
Or
http://commandwindows.com/command3.htm[^]


正如Olivier指出的那样,该参数是您将在控制台上编写的用于运行命令的内容. br/>
您可以使用该说明启动应用和其他内容.

问题"是它已被弃用,强烈建议使用
As Olivier points out the argument is what you would write on the console to run the command.

You can launch apps and other things using that instruction.

The "problem" is that it has been deprecated and that it is highly recommended to use the CreateProcess[^] function now...

Good luck...


[Led Mike语气]它很好地隐藏在文档[/Led Mike语气]中:
[Led Mike tone] It is well hidden inside the documentation [/Led Mike tone]: system[^].


这篇关于我有一个关于system(“")函数的请求.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆