-
个人简介
,--,----. ,--,----. /==/` - ./ /==/` - ./ `--`=/. / `--`=/. / /==/- / /==/- / /==/- /-. /==/- /-. /==/, `--`\/==/, `--`\ \==\- -, |\==\- -, | `--`.-.--` `--`.-.--` > https://kaoshi.wjx.top/vm/Ok302l8.aspx# // 设置控制台文本颜色 void setColor(int color) { HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE); // 获取控制台句柄 SetConsoleTextAttribute(hConsole, color); // 设置文本颜色 }
模板
#include <bits/stdc++.h> #define deBUG(var) cout << "[deBUG]" << #var << "=" << var << endl; using namespace std; int main() { int a, b; scanf("%d %d", &a, &b); printf("%d", (a + b)); return 0; }
打字网站 https://xsm-zz.typingclub.com/portal/class/20436293/overview
手撕栈结构
#include <bits/stdc++.h> using namespace std; int stk[100]={0,1,23,4}; int tp = 3; //栈顶元素的下标 //栈空 bool empty(){ return (tp>0); } //元素个数(size) int size(){ return tp; } //入栈(push) void push(int x){ stk[++tp] = x; } //出栈(pop) void pop(){ tp--; } //返回栈顶元素(top) int top(){ return stk[tp]; } int main() { cout<<top()<<endl; pop(); push(44); cout << size()<<endl; cout << empty()<<endl; return 0; }
文件读写
freopen("D.in","r",stdin); //输入文件 freopen("D.out","w",stdout); //输出文件
世豪校区: https://xiaosaima-hd.feishu.cn/share/base/form/shrcnjBFIAh9BYNJydIbK4WKREc [图片]
西川校区: https://xiaosaima-hd.feishu.cn/share/base/form/shrcnRpCQCZYpQ16csX6WUAfoQc [图片]
-
最近活动