假设有程序A
int main(args[])
{
int xx=atoi(args[0]),
if(xx%3==0)
return 0;
if(xx%3==1)
return 1;
if(xx%3==2)
return 2;
}程序B在命令行中使用 A 23456调用程序A
那么,在程序A执行完毕,程序如何得到A的返回值?
int main(args[])
{
int xx=atoi(args[0]),
if(xx%3==0)
return 0;
if(xx%3==1)
return 1;
if(xx%3==2)
return 2;
}程序B在命令行中使用 A 23456调用程序A
那么,在程序A执行完毕,程序如何得到A的返回值?
BOOL GetExitCodeProcess(
HANDLE hProcess,
LPDWORD lpExitCode
);
int main(args[])
{
int xx=atoi(args[1]);
if(xx%3==0)
return 0;
if(xx%3==1)
return 1;
if(xx%3==2)
return 2;
}