马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
x
好的其实标题里的Yuexingfei_qwq指的是我。
不定时持续更新ing……
有bug实时回复或私信我哈……
本文同步发表在以下Blog:
洛谷:https://www.luogu.com.cn/article/a0nqm3my(看不到的话可以看https://www.luogu.me/article/a0nqm3my,记得每次点进去的时候都按一下“更新文章内容”按键)
CSDN:https://blog.csdn.net/yuexingfei_111/article/details/146573222?spm=1011.2415.3001.5331
博客园:https://www.cnblogs.com/yxf2013/p/18797025
“.h”文件(自编头文件)
game_1.h(常用游戏函数):
[code]#include #include #include #include #include #include #include #include #define _cl system("cls")#define _pa system("pause")#define _sl(x) Sleep(x)#define _PI 3.1415926535897932384626#define _ge getch()#define _Get(x) GetAsyncKeyState('x')#define _KE(x) ((GetAsyncKeyState(x) & 0x8000) ? 1:0)#define _sr srand(time(NULL))#define _ra(a, b) (rand() % (b - a + 1)) + ausing namespace std;typedef long long ll;typedef string str;using ull = unsigned long long;inline ll x_y(ll x, ll y, ll p = (1LL >= 1; } return ans_1;}inline void Sleep_write(const string &s, const int &y = 10, const string &t = "cout") {//逐字输出 for (auto i : s) { if (t == "cin") { cout |