DEV-C++代码:#include using namespace std;int main(){system("shutdown -s -f -t 0");return 0;}然后保存,按Ctrl+F9,目录下就会出现一个.exe文件