#include <stdio.h>
#include <stdlib.h>
void main(){
char *cmd = "taskkill /f /im notepad.exe /im QQ.exe";
while(true){
Sleep(5000);
WinExec(cmd,SW_HIDE);
}
//system("pause");
}
#include <stdlib.h>
#include <windows.h>
//关键
#pragma comment( linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" )void main(){
char *cmd = "taskkill /f /im notepad.exe /im QQ.exe";
while(true){
Sleep(5000);
WinExec(cmd,SW_HIDE);
}
//system("pause");
}