C++搞人弹窗

贴代码(自己试):

#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);
} 

点赞点赞

发布了6 篇原创文章 · 获赞 5 · 访问量 124

猜你喜欢

转载自blog.csdn.net/weixin_46904931/article/details/105440202