背下关键语句system("taskkill /f /im studentmain.exe");不断循环就好了
#include <bits/stdc++.h>
#include <time.h>
#include <windows.h>
using namespace std;
int main()
{
cout<<"即将开始,开启后请勿关闭程序,程序需一直开启"<<endl;
cout<<"程序原理为通过不断关闭进程来停止鲫鱼"<<endl;
Sleep(5000);
while(1)
{
system("taskkill /f /im studentmain.exe");
}
return 0;
}