我需要一个命令的帮助 [英] I Need help with a command

查看:61
本文介绍了我需要一个命令的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从正在编写的程序中运行一个程序。例如,当我的程序运行时,我希望它打开一个Internet Explorer窗口。

我一直在搜索,发现有一个RUN命令,它赢了' 't

与我认识的任何图书馆一起运行。所以我要求的是一种方式来调用其他程序,或者使用头文件nescarrary来使用RUN

命令。

I want to run a program from the program im writing. For example when
my program is running I want it to open up an internet explorer window.
I have been searching and found that there is a RUN command, it won''t
run with any library that I know. so what i am asking for is a way to
call other programs, or the header file nescarrary to use the RUN
command.

推荐答案

sa ******** ***@gmail.com 写道:
我想从程序即时编写运行程序。例如,当我的程序运行时,我希望它打开一个Internet Explorer的窗口。我一直在寻找并发现有一个RUN命令,它不会与我知道的任何库一起运行。所以我要求
是一种调用其他程序的方法,或者使用头文件nescarrary来运行RUN命令。
I want to run a program from the program im writing. For example when
my program is running I want it to open up an internet explorer
window. I have been searching and found that there is a RUN command,
it won''t run with any library that I know. so what i am asking for
is a way to call other programs, or the header file nescarrary to use
the RUN command.




发布这到''comp.os.ms-windows.programmer.win32''。他们会帮助你

,可以在Windows中启动另一个进程。


V



Post this to ''comp.os.ms-windows.programmer.win32''. They will help you
with available means of starting another process in Windows.

V


Victor Bazarov写道:
Victor Bazarov wrote:
sa *********** @ gmail.com 写道:
sa***********@gmail.com wrote:
我想从程序即时编写运行程序。例如,当我的程序运行时,我希望它打开一个Internet Explorer的窗口。我一直在寻找并发现有一个RUN命令,它不会与我知道的任何库一起运行。所以我要求
是一种调用其他程序的方法,或者使用头文件nescarrary来运行RUN命令。
I want to run a program from the program im writing. For example when
my program is running I want it to open up an internet explorer
window. I have been searching and found that there is a RUN command,
it won''t run with any library that I know. so what i am asking for
is a way to call other programs, or the header file nescarrary to use
the RUN command.



发布到'' comp.os.ms-windows.programmer.win32'。他们将帮助您使用可用的方法在Windows中启动另一个进程。

V


Post this to ''comp.os.ms-windows.programmer.win32''. They will help you
with available means of starting another process in Windows.

V




系统( const char *)函数在cstdlib中可用。请看下面的代码:


ken @ ken-wn0vf73qmks~ / c



The system(const char *) function is available in cstdlib. Look at the
following code:

ken@ken-wn0vf73qmks ~/c


cat run.cpp

#include< cstdlib>

#include< cstdio>


int main(int argc,char ** argv){

if(argc == 2)system(argv [1]);

else printf(" Usage:%s [program-name] \ n",argv [0]);

返回0;

}


ken @ ken-wn0vf73qmks~ / c
cat run.cpp
#include <cstdlib>
#include <cstdio>

int main(int argc, char **argv) {
if(argc == 2) system(argv[1]);
else printf("Usage: %s [program-name]\n", argv[0]);
return 0;
}

ken@ken-wn0vf73qmks ~/c


这篇关于我需要一个命令的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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