怎么编程能够实现运行能打开Windows的记事本程序 exe文件点击运行能打开Windows的记事本程序
system("start notepad xxx.txt");
system("notepad xxx.txt");
记事本打开xxx.txt文件。不加文件名只打开记事本,不打开文件。需要stdlib.h
#include<windows.h>
int main()
{
ShellExecute(NULL, "open", "notepad.exe", NULL, NULL, 1);
return 0;
}