- 博客(4)
- 收藏
- 关注
原创 【迫真题解】X子棋
这题是大模拟。 写完了以后改成了游戏供大家娱乐。 具体功能读代码即可。 #include <bits/stdc++.h> #include <Windows.h> #define no printf("illegal\n") #define yes printf((i % 2 == 1 ? "Player1 wins\n" : "Player2 wins\n")), exit(0) #define debug cout << "fuck\n" using namespa
2021-10-06 14:33:50
612
原创 Bingo
#include <iostream> #include <cstdlib> #include <ctime> #include <Windows.h> #include <tchar.h> using namespace std; int tg[4]; char nb[4]; bool ok[10] = {false}; int mai...
2019-03-16 11:59:03
640
原创 gotoxy函数定义
gotoxy函数可以使光标移动到指定位置,但是,C++标准库中没有 这个函数,所以我们只能自己定义。 定义它需要用到一个叫做SetMouseControlCursor的东西,就是移动光标。 这是它定义完的样子: void gotoxy(int x, int y) { COORD pos; pos.X=x; pos.Y=y; SetConsoleCursorPosition(GetStdHa...
2018-10-13 17:26:48
8057
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人