-
个人简介
手撕栈结构
#include<bits/stdc++.h> using namespace std; int stk[10]; int top; bool empty(){ return top; } int size (){ return top; } void push(int n){ stk[++top]=n; } void pop(){ top--; } int getTop(){ return stk[top]; } int main(){ int push(7); cout << getTop(); return 0; }
-
通过的题目
-
最近活动
题目标签
- 一维数组
- 1
- 略有小成
- 1
- 电子学会二级
- 1
- 分支结构
- 1
- 循环结构
- 1
- 嵌套循环
- 1
- GESP二级
- 1