window c++ system taskkill 关闭和打开一个程序的例子
#include "stdafx.h"#include <Windows.h>#include <ShellAPI.h>void guanbi(void){ system("taskkill /F /IM 股讯大数据.exe /fi \"pid gt 0\""); // pid gt 0一定要有,不然关不掉}void dakai(void){ system("C:\\Us