C++可以执行Windows CMD指令:system("");
CMD可以输入"taskkill /f /t /im x.y"强制结束某个进程。x是进程的名字,y是进程的后缀名。
以极域电子教室为例:
#include<iostream>
using namespace std;
int main()
{
system("taskkill /f /t /im StudentMain.exe");
return 0;
}
C++可以执行Windows CMD指令:system("");
CMD可以输入"taskkill /f /t /im x.y"强制结束某个进程。x是进程的名字,y是进程的后缀名。
以极域电子教室为例:
#include<iostream>
using namespace std;
int main()
{
system("taskkill /f /t /im StudentMain.exe");
return 0;
}