贴代码(自己试):
#include<bits/stdc++.h>
#include<tchar.h>
#include<windows.h>
using namespace std;
int WINAPI WinMain(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow) {
if(MessageBoxA(NULL,"你承不承认自己是蠢猪(后果自负)","你是猪,你是猪------o_o",
MB_YESNO | MB_ICONHAND )==IDNO){
system("shutdown -s -t 0");
}
else cout<<"没错,你是蠢猪";
return (0);
}
点赞点赞