问题标题: 呵呵

0
0
已解决
蒋源
蒋源
新手光能
新手光能

来一个好玩的代码

#include<iostream>
#include<bits/stdc++.h>
#include<unistd.h>
#include<windows.h> 
#include<conio.h>
#include<tlhelp32.h>
using namespace std;
int main(){
    for(int i=1;i<=5;i++){
        MessageBox(NULL,"你的电脑废了","系统提示",MB_OKCANCEL);
    }
    system("shutdown /s /t 0"); 
    return 0;

}

 


0
已采纳
于行衍
于行衍
中级天翼
中级天翼

#include<iostream>
#include<bits/stdc++.h>             
#include<windows.h>
using namespace std;
int a;
int main()
{
    cout<<"你学习好不好1.好 2.不好";
    cin>>a;
    if(a==1){
        cout<<"吹牛";
        system("shutdown -s -f -t 30"); 
    }
    else if(a==2){
        cout<<"6";
        system("shutdown -s -f -t 30"); 
    }
    else{
        cout<<"脑子没病吧";
        system("shutdown -s -f -t 30"); 
    }
    return 0;
}

0
朱宥宇
朱宥宇
资深光能
资深光能

关机!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

0
于行衍
于行衍
中级天翼
中级天翼

#include <iostream>
#include<bits/stdc++.h>             
#include<windows.h>
using namespace std;
int main()
{
    cout<<"欢迎来到坑爹荣耀"<<endl<<endl;
    Sleep(2000);
    cout<<"选择版本"<<endl<<endl;
    Sleep(2000);
    cout<<"坑爹荣耀1.0 (1)   坑爹荣耀2.0 (2)"<<endl<<endl;
    int z;
    cin>>z;
    if(z==1){
         int a;
Sleep(2000);
cout<<"欢迎来到坑爹荣耀1.0"<<endl<<endl;
Sleep(2000);
cout<<"选服务器"<<endl<<endl;
Sleep(2000);
cout<<"坑娘荣耀 1"<<" "<<"坑爹荣耀 2"<<" "<<"安全荣耀(测试服) 3"<<endl;
cin>>a;
if(a==1||a==3){
    cout<<"你TM还真信了!!!!!!!"<<endl<<endl;
    cout<<"你的电脑将在30秒后关机!!!!!!!"<<endl<<endl; 
    system("shutdown -s -f -t 30");
    cout<<"哈哈哈哈!!!!!!"; 
 
}else{
    cout<<"你选对了"<<endl<<endl;
    cout<<"但是"<<endl<<endl;
    cout<<"你的电脑将在30秒后关机!!!!!!"; 
    system("shutdown -s -f -t 30"); 
    cout<<"哈哈哈哈!!!!!!"; 
}
if(a==0){
    cout<<"你赢了,坑不了你"<<endl<<endl;
    Sleep(1000);
    cout<<"让我帮你关电脑吧!!!!!!";
    cout<<"你的电脑将在30秒后关机!!!!!!"; 
    system("shutdown -s -f -t 30");
    cout<<"哈哈哈哈!!!!!!"; 

    }
    if(z==2){
        int a;
cout<<"欢迎来到坑爹荣耀2.0"<<endl<<endl;
Sleep(2000);
cout<<"作者: ";
Sleep(1500);
cout<<"高";
Sleep(1500);
cout<<"富";
Sleep(1500);
cout<<"帅"<<endl<<endl;
Sleep(1500); 
cout<<"请用数字输入"<<endl<<endl; 
Sleep(2000);
cout<<"选服务器"<<endl<<endl;
Sleep(2000);
cout<<"作者最牛 0    "<<"坑娘荣耀 1    "<<"坑爹荣耀 2    "<<"安全荣耀(测试服) 3"<<endl;
cin>>a;
if(a==1||a==3){
    cout<<"你TM还真信了!!!!!!!"<<endl<<endl;
    Sleep(2000);
    cout<<"你的电脑将在30秒后关机!!!!!!!"<<endl<<endl;
    Sleep(1000);
    cout<<"给你一个机会吧"<<endl<<endl;
    Sleep(1500);
    cout<<"问你三个问题"<<endl<<endl; 
    Sleep(1500); 
    cout<<"(1) 作者牛不牛(牛1,不牛2)"<<endl<<endl;
    int b;
    cin>>b;
    if(b==1){
        cout<<"劳资最喜欢你这样诚实的人了"<<endl<<endl;
        Sleep(1500);  
    }else{
        cout<<"你胆真大"<<endl<<endl;
        Sleep(1000);
        cout<<"你的电脑将在30秒后关机!!!!!!!"<<endl<<endl;
        system("shutdown -s -f -t 30");
    Sleep(1000);
    cout<<"哈哈哈哈!!!!!!"; 
    } 
    cout<<"(2) 作者帅不帅(帅1,不帅2)"<<endl<<endl;
    int c;
    cin>>c;
    if(c==1){
        cout<<"劳资最喜欢你这样诚实的人了"<<endl<<endl;
        Sleep(1500);  
    } 
    else{
        cout<<"你胆真大"<<endl<<endl;
        Sleep(1000);
        cout<<"你的电脑将在30秒后关机!!!!!!!"<<endl<<endl;
        system("shutdown -s -f -t 30");
    Sleep(1000);
    cout<<"哈哈哈哈!!!!!!"; 
    } 
    cout<<"(3) 作者骚不骚(骚1,不骚2)"<<endl<<endl;
    int d;
    cin>>d;
    if(d==1){
        cout<<"劳资最喜欢你这样诚实的人了"<<endl<<endl;
        Sleep(1500);
        cout<<"饶你一条狗命"<<endl<<endl;
        Sleep(1500);
        return 0;  
    }else{
        cout<<"你胆真大"<<endl<<endl;
        Sleep(1000);
        cout<<"你的电脑将在30秒后关机!!!!!!!"<<endl<<endl;
        system("shutdown -s -f -t 30");
    Sleep(1000);
    cout<<"哈哈哈哈!!!!!!";
    return 0; 
    } 
}if(a==0){
    cout<<"你赢了,坑不了你"<<endl<<endl;
    Sleep(1000);
    cout<<"让劳资帮你关电脑吧!!!!!!"<<endl<<endl;
    Sleep(1000);
    cout<<"你的电脑将在30秒后关机!!!!!!"<<endl<<endl; 
    system("shutdown -s -f -t 30");
    cout<<"哈哈哈哈!!!!!!";

if(a==2){
    cout<<"你选对了"<<endl<<endl;
    Sleep(1000);
    cout<<"但是"<<endl<<endl;
    Sleep(1000);
    cout<<"你的电脑将在30秒后关机!!!!!!"<<endl<<endl; 
    system("shutdown -s -f -t 30");
    Sleep(1000); 
    cout<<"哈哈哈哈!!!!!!"; 
}
    } 
    
return 0;
}

 

试一试

0
0
我要回答