我希望我的C++程序在Windows中执行另一个.exe文件,我该怎么做?我正在使用Visual C++ 2010。
这是我的代码:
#include "stdafx.h"
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
unsigned int input;
cout << "Enter 1 to execute program." << endl;
cin >> input;
if(input == 1) /*execute program here*/;
return 0;
}
system("程序执行名称在此")
- turnt