当前位置:网站首页>数组模拟栈
数组模拟栈
2022-06-22 16:58:00 【安德伍德之心】
#include <iostream>
using namespace std;
const int N = 100010;
int stk[N], tt;
//插入
void push(int x)
{
stk[++tt] = x;
}
//弹出
void pop()
{
tt--;
}
//判断栈是否为空
bool isEmpty()
{
if(tt>0) return false;
else return true;
}
//获得栈顶,不弹出
int pop()
{
return skt[tt];
}
边栏推荐
- clickhouse 21. X cluster four piece one copy deployment
- 无心剑中文随感《探求真谛》
- Simple integration of client go gin -update
- Q: how bad can a programmer be?
- Xftp 7 (ftp/sftp client) v7.0.0107 official Chinese free official version (with file + installation tutorial)
- Graduation season · undergraduate graduation thoughts -- the self-help road of mechanical er
- Power BI的五个实用小技巧(文末赠书)
- Azkaban startup error 2022/06/20 21:39:27.726 +0800 error [stdouterrredirect] [azkaban] exception in thread "m
- 新东方转型双语直播带货给项目管理人的一场课
- Cloud minimalist deployment svelte3 chat room
猜你喜欢

腾讯云国际版云服务器欠费说明

Interview shock 58: Six differences among truncate, delete and drop!

缺失值處理

clickhouse 21. X cluster four piece one copy deployment

今天19:30 | 科普大佬说,带大家探寻AI如何激发人类的创造力

【人脸识别】基于GoogleNet深度学习网络的人脸识别matlab仿真

@“齐鲁多娇”幸运用户,山东5A景区喊你免费游园啦!

It may be the most comprehensive Matplotlib visualization tutorial in the whole network
![azkaban启动报错 2022/06/20 21:39:27.726 +0800 ERROR [StdOutErrRedirect] [Azkaban] Exception in thread “m](/img/02/2e402f05022b36dc48ff47232e8535.png)
azkaban启动报错 2022/06/20 21:39:27.726 +0800 ERROR [StdOutErrRedirect] [Azkaban] Exception in thread “m

Nuxt - Universal (SSR / SSG) / single page app (rendering mode)
随机推荐
请问一下,CDC2.0在读取mysql的时候,应该是没有表锁了吧,刚刚报了一个错误,access d
Kibana+elk cluster log processing
Typescript (7) generic
The world's first AR contact lens, the entrance of metauniverse is really opened this time?
Mybaits: common database operations (Neusoft operations)
项目经理们在哪个时刻特别想逃离工作?
RSPS2022 Finalist | Dr. Yang Bai 简介
Principle of synchronized implementation
STM32 series (HAL Library) - f103c8t6 hardware SPI illuminates OLED screen with word library
<JVM上篇:内存与垃圾回收篇>08-对象实例化及直接内存
"Half of Zhejiang's Venture Capital Circle" must be state-owned assets
Live streaming: dongyuhui is so popular. Is there anyone watching liuzhenhong?
各位大佬,第一次使用flink mysql cdc, 现在程序启动 没报错 新增数据没有打印出来
math_角函数&反三角函数
Jenkins installation and upgrade
CONDA - basic configuration command summary
How to solve the problem of database?
第四届青年生命科学论坛 | 第一轮通知
短视频直播源码,EditText输入框的使用
Short video with goods source code, save pictures to photo album / Gallery