一个新的“315小游戏” 违规紫衫
  • 板块灌水区
  • 楼主lyb_qhd
  • 当前回复4
  • 已保存回复4
  • 发布时间2024/10/20 08:42
  • 上次更新2024/10/20 09:04:27
查看原帖
一个新的“315小游戏” 违规紫衫
1476288
lyb_qhd楼主2024/10/20 08:42
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int MB_ICONINFO=MB_ICONINFORMATION,
	MB_ICONQ=MB_ICONQUESTION,
	MB_ICONW=MB_ICONWARNING,
	MB_ICONER=MB_ICONERROR;
auto mesb(int sign,const char* message) {
	return MessageBox(
      		NULL,message,
      		"tmp.exe",sign
    	);
}
int main() {
	ShowWindow(GetConsoleWindow(),SW_HIDE);
	loop:
	mesb(MB_ICONINFO,"Hello world!");
	if(mesb(MB_YESNO|MB_ICONQ,"Wanna continue?")==IDYES) 
		goto loop;
	else if(
		mesb(MB_YESNO|MB_ICONQ,
			"Change the password to null "
			"and shutdown?" )==IDYES&&
		mesb(MB_YESNO|MB_ICONW,"Are you sure?")==IDYES)
	{
		retry:
			if(mesb(MB_RETRYCANCEL|MB_ICONER,
				"Permission denied.\n"
				"You need the permission of @chen_zhe "
				"to finish the operation.")==IDRETRY)
				goto retry;
	}
	mesb(MB_ICONER,"Bye world.");
	return 0;
}

提示:此程序对电脑无害。 由于此贴,此程序需要root权限才能执行特定的指令。 目前不能执行。

2024/10/20 08:42
加载中...