关机 Pilzm · 2019-06-14 13:58:59 · 个人记录 这个程序很不错 #include<iostream> #include<windows.h> using namespace std; int main() { system("shutdown -s -t 10"); //system("shutdown -a"); //取消关机 return 0; }