貼代碼(自己試):
#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);
}
點贊點贊
打賞打賞