【可能是全论坛最乱的代码】Cpp game
本内容依据署名-非商业性使用-相同方式共享 4.0 国际(CC BY-NC-SA 4.0)许可证进行授权。要查看该许可证,可访问https://creativecommons.org/licenses/by-nc-sa/4.0/ .
本代码的必备前置头文件需要写入文件和目录、执行可执行代码、使用start功能打开网页的功能。放心,所有代码都开源,不会有后门危机。
特别地,创建一个目录在D:/,创建一个文件在原文件目录。需要解压。
免责声明:如果您觉得还不放心,可以不使用,作者不承受任何关于“使用system()”函数的指控。
特别提示:请忽略编译器所有警告。
文件列表:
[*]Special.cpp (最新版本:1.1)
[*]index.h(最新版本:1.0)
[*]Class_setOP.h(最新版本:1.3.1)
[*]Class_HunL.h (最新版本:1.2)
[*]Class_ExTextcode.h (不设最新版本)
[*]介绍文档(该帖子)
Special.cpp的第一个发行版。内含锟斤拷(但是由于仅限Visual Code,所以改为\xef\xed转义字符)和调用其他库。
#include<assert.h>
#include<ctype.h>
#include<errno.h>
#include<float.h>
#include<fstream>
#include<iomanip>
#include<iostream>
#include<limits.h>
#include<locale.h>
#include<math.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
#include<wchar.h>
#include<wctype.h>
#include<algorithm>
#include<bitset>
#include<cctype>
#include<cerrno>
#include<clocale>
#include<cmath>
#include<complex>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<ctime>
#include<deque>
#include<exception>
#include<fstream>
#include<functional>
#include<limits>
#include<list>
#include<map>
#include<iomanip>
#include<ios>
#include<iosfwd>
#include<iostream>
#include<istream>
#include<ostream>
#include<queue>
#include<set>
#include<sstream>
#include<stack>
#include<stdexcept>
#include<streambuf>
#include<string>
#include<utility>
#include<vector>
#include<cwchar>
#include<cwctype>
#include<complex.h>
#include<fenv.h>
#include<inttypes.h>
#include<stdbool.h>
#include<stdint.h>
#include<tgmath.h>
#include<bits/stdc++.h>
#include<windows.h>
//加载特色库
#include"Class_setOP.h"
#include"Class_HunL.h"
#include"Class_ExTextcode.h"
using namespace std;
/*
From Lihl in C++.
*/
const char* YUMTITLE = "title YUM 1.0";
typedef unsigned UuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUu;
typedef int IiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIi;
typedef double DdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDd;
typedef long long LlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLl;
typedef float FfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFf;
typedef bool BbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBb;
typedef void VvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVv;
typedef char CcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCc;
typedef wchar_t WcTwCtWcTwCtWcTwCtWcTwCtWcTwCtWcTwCtWcTwCtWcTwCtWcTwCtWcTwCt;
typedef unsigned char UuCcUuCcUuCcUuCcUuCcUuCcUuCcUuCcUuCcUuCcUuCcUuCcUuCcUuCc;
typedef signed char SsCcSsCcSsCcSsCcSsCcSsCcSsCcSsCcSsCcSsCcSsCcSsCcSsCcSsCcSsCc;
typedef unsigned int UuIiUuIiUuIiUuIiUuIiUuIiUuIiUuIiUuIiUuIiUuIiUuIiUuIiUuIiUuIi;
typedef signed int SsIiSsIiSsIiSsIiSsIiSsIiSsIiSsIiSsIiSsIiSsIiSsIiSsIiSsIiSsIiSsIi;
typedef short int ShIsHiShIsHiShIsHiShIsHiShIsHiShIsHiShIsHiShIsHiShIsHiShIsHiShIsHi;
typedef unsigned short int UsIuSiUsIuSiUsIuSiUsIuSiUsIuSiUsIuSiUsIuSiUsIuSiUsIuSiUsIuSi;
typedef signed short int SsSsIsSsSiSsSsIsSsSiSsSsIsSsSiSsSsIsSsSiSsSsIsSsSiSsSsIsSsSiSsSsIsSsSi;
typedef long int LilILilILilILilILilILilILilILilILilILilILilILilILilILilILilILilILilILilI;
typedef signed long int SlIsLiSlIsLiSlIsLiSlIsLiSlIsLiSlIsLiSlIsLiSlIsLiSlIsLiSlIsLiSlIsLi;
typedef unsigned long int UlIuLiUlIuLiUlIuLiUlIuLiUlIuLiUlIuLiUlIuLiUlIuLiUlIuLiUlIuLiUlIuLi;
typedef long double LdlDLdlDLdlDLdlDLdlDLdlDLdlDLdlDLdlDLdlDLdlDLdlDLdlDLdlDLdlDLdlDLdlDLdlD;
typedef string SsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSs;
VvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVv Textcode(){
cout<<"######## ## ## ########## ###### ### ## ## ########\n";
cout<<" ## ## ###### ## ## ## ## ## ### ### ## \n";
cout<<" ## ## ###### ## ## ###### #### ## \n";
cout<<" ## ########### ###### ## #### ## ## ## ### ## ###### \n";
cout<<" ## ## #### ## ## ########### ## ## ## \n";
cout<<" ## ## ###### ## ## #### ## ## ## ## \n";
cout<<" ## ## ## ########## ###### ## ## ## ## ########\n";
}
VvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVv zyjking(){
char *CcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCc="\xef\xbf\xbd\xef\xbf\xbd";
printf("%s\n", CcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCc);
}
IiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIi YUM(){
IiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIi _;
IiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIi *__=&_;
begin:
system(YUMTITLE);
cout<<"欢迎使用YUM,请输入命令:\n /";
scanf("%d",__);
switch(_){
default:goto setOp;
}
setOp:
loadRCE("Mr_jtb");
return 0;
}
IiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIi main(){
YUM();
for(IiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIi i=0x1>>0x1;i<=0x1<<0x8;i++){
zyjking();
}
Sleep(10000);
system("cls");
system("color 00");
system("title Thanks for playing!");
Textcode();
ExText();
return 0;
}
这是index.h,是这次主文件Special.cpp的所有头文件代码前置。
#ifndef INDEX_H
#define INDEX_H
#define INF 0x3f3f3f3f
#define PI acos(-1.0)
#include<assert.h>
#include<ctype.h>
#include<errno.h>
#include<float.h>
#include<fstream>
#include<iomanip>
#include<iostream>
#include<limits.h>
#include<locale.h>
#include<math.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
#include<wchar.h>
#include<wctype.h>
#include<algorithm>
#include<bitset>
#include<cctype>
#include<cerrno>
#include<clocale>
#include<cmath>
#include<complex>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<ctime>
#include<deque>
#include<exception>
#include<fstream>
#include<functional>
#include<limits>
#include<list>
#include<map>
#include<iomanip>
#include<ios>
#include<iosfwd>
#include<iostream>
#include<istream>
#include<ostream>
#include<queue>
#include<set>
#include<sstream>
#include<stack>
#include<stdexcept>
#include<streambuf>
#include<string>
#include<utility>
#include<vector>
#include<cwchar>
#include<cwctype>
#include<complex.h>
#include<fenv.h>
#include<inttypes.h>
#include<stdbool.h>
#include<stdint.h>
#include<tgmath.h>
#include<bits/stdc++.h>
#include<windows.h>
/*
From Lihl in C++.
*/
typedef unsigned UuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUuUu;
typedef int IiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIi;
typedef double DdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDdDd;
typedef long long LlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLlLl;
typedef float FfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFfFf;
typedef bool BbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBb;
typedef void VvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVv;
typedef char CcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCcCc;
typedef wchar_t WcTwCtWcTwCtWcTwCtWcTwCtWcTwCtWcTwCtWcTwCtWcTwCtWcTwCtWcTwCt;
typedef unsigned char UuCcUuCcUuCcUuCcUuCcUuCcUuCcUuCcUuCcUuCcUuCcUuCcUuCcUuCc;
typedef signed char SsCcSsCcSsCcSsCcSsCcSsCcSsCcSsCcSsCcSsCcSsCcSsCcSsCcSsCcSsCc;
typedef unsigned int UuIiUuIiUuIiUuIiUuIiUuIiUuIiUuIiUuIiUuIiUuIiUuIiUuIiUuIiUuIi;
typedef signed int SsIiSsIiSsIiSsIiSsIiSsIiSsIiSsIiSsIiSsIiSsIiSsIiSsIiSsIiSsIiSsIi;
typedef short int ShIsHiShIsHiShIsHiShIsHiShIsHiShIsHiShIsHiShIsHiShIsHiShIsHiShIsHi;
typedef unsigned short int UsIuSiUsIuSiUsIuSiUsIuSiUsIuSiUsIuSiUsIuSiUsIuSiUsIuSiUsIuSi;
typedef signed short int SsSsIsSsSiSsSsIsSsSiSsSsIsSsSiSsSsIsSsSiSsSsIsSsSiSsSsIsSsSiSsSsIsSsSi;
typedef long int LilILilILilILilILilILilILilILilILilILilILilILilILilILilILilILilILilILilI;
typedef signed long int SlIsLiSlIsLiSlIsLiSlIsLiSlIsLiSlIsLiSlIsLiSlIsLiSlIsLiSlIsLiSlIsLi;
typedef unsigned long int UlIuLiUlIuLiUlIuLiUlIuLiUlIuLiUlIuLiUlIuLiUlIuLiUlIuLiUlIuLiUlIuLi;
typedef long double LdlDLdlDLdlDLdlDLdlDLdlDLdlDLdlDLdlDLdlDLdlDLdlDLdlDLdlDLdlDLdlDLdlDLdlD;
typedef std::string SsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSs;
#endif
#ifdef INDEX_H
#include<bits/stdc++.h>
#endif
泥潭用户喜闻乐见的setOp环节,这也是一个必备头文件。迫于能力,只能这样了。
现在版本是1.3.1,一次为了适配新版本的Class_HunL.h的更新。文件名是Class_setOp.h。
特性:创建文件及文件目录,执行system()和更改exe黑窗口名称。
#ifndef setOP_h
#define setOP_h
#include"index.h"
#include"Class_HunL.h"
BbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBb setOp(BbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBbBb true_or_false){
if(true_or_false){
system("title loadrce()");
system("start https://www.mcbbs.net/?1744069");
system("start https://mcbbs.wiki/wiki/yumc");
Sleep(3000);
system("color 10");
system("echo 已执行:setOp=True !");
system("color 20");
system("echo 已执行:java.public_static_void_main()!");
Sleep(2500);
system("color 34");
system("echo 错误:在删除用户 SHEEP_REALMS 时发生致命错误:0xC0000005");
Sleep(2000);
system("cls");
system("color 44");
system("echo 错误:Java 版本过低!:0xFFFFFFFF");
system("echo 正在创建错误目录...:");
Sleep(3395);
system("mkdir D:\\ThanksForFlayinglihlCppGame");
system("cd D:\\ThanksForPlayinglihlCppGames");
system("d:");
system("type nul>thanks.txt");
system("color 54");
system("echo 创建成功!请检查D:/。正在创建错误报告...");
Sleep(1500);
system("color 64");
system("echo 创建成功!请检查D:/。正在写入内容...");
Sleep(2000);
system("color 74");
Sleep(1775);
system("color 84");
system("echo 全部写入了!问题正在修复中...");
Sleep(1575);
system("title Fixed.exe");
system("color 00");
system("echo 正在删除某些文件...");
Sleep(1775);
system("echo 糟糕!全部删掉了。。不过这也无关紧要。");
Sleep(1005);
system("color 96");
system("echo 发现不可逆错误!...");
Sleep(250);
system("title 锟斤拷吞吞吞烫烫烫.class");
}
}
VvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVv loadRCE(SsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSs Username){
if(Username=="Mr_jtb"||Username=="MiaoWooMC"){
setOp(HunL);
}
}
#endif
New! 新增特性:Class_HunL.h
1.2版本紧急更新了一个在0x3f3f3f3f*0x80808080溢出时的warning适配修复。
本作品的重中之重——精心排版30分钟的,原型来自托里拆利小号的混乱布尔判断变量:
#include"index.h"
#ifndef HunL_h
#define HunL_h
#define NaN sqrt(-1)
bool HunL=((((NULL
not_eq
0) and
(void*)0
not_eq
NULL))
or(
(sizeof(
wchar_t
)
not_eq
sizeof(char))))
and(
0x3f3f3f3f
+
0x7fffffff
%
0x80000000
not_eq
0x3f7f3f7f
)or(
not true
==
not false)
not_eq((
not (
0x3f3f3f3f
+
0xf3f3f3f3
==
0x33ff33ff
) or (
not (
NaN
not_eq
NaN))));
#endif
可惜没做出来。
这段内容是在所有结束后会输出的内容。限于截稿时间,草草收尾罢。
#ifndef ExText_h
#define ExText_h
#include"index.h"
VvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVvVv ExText()
{
//The characters here will be printed when "This Game" has already been printed.
printf("感谢您的游玩!");
printf("作者:lihl");
printf("版本 20240114更新");
}
#endif
已经内含在里面咯。
您…是mcbbs大佬?
页: [1]