当前位置:网站首页>Experiment 2: stack
Experiment 2: stack
2022-06-30 14:28:00 【Dayuan Aliang】
Summary of common problems in running the basic operation code of stack
1. compiler : It is best to DEV
2. File suffix :.cpp( Because stack application functions often use references &)
3.flushall() function :scanf The operation of convection follows the principle of type matching , If the type doesn't match , It will not read the input stream . So the input stream will stay , If the input stream is not empty ,scanf Don't wait for user input , The solution is to manually clear zd Except input stream , You can use flushall() Function implementation .
4.typedef: It is equivalent to renaming a data type name , Reading code is a little more concise
5. You can put default Delete the sentence
边栏推荐
- 提权扫描工具
- The JSON data returned from the control layer to JS has a "\" translator. How to remove it
- 【BUUCTF】 EasySql
- Advanced usage of go language for loop break and continue
- Data recovery software easyrecovery15 Download
- Intelligent operation and maintenance: visual management system based on BIM Technology
- Deep understanding Net (2) kernel mode 3 Kernel mode construct mutex
- 想請教一下,我在佛山,到哪裏開戶比較好?手機開戶是安全麼?
- Problems in QT creator (additional unknown and error lines are listed in the debug output window)
- Lifting scanning tool
猜你喜欢

Notes on reverse learning in the first week of winter vacation

Jetpack compose for perfect screen fit
![[redis series] redis learning 16. Redis Dictionary (map) and its core coding structure](/img/5a/5da6180db0b2b96660bcd9b4fa0633.png)
[redis series] redis learning 16. Redis Dictionary (map) and its core coding structure

Apache Doris comparison optimization Encyclopedia

Using docker to manage MySQL services under Windows

Detailed explanation of the first three passes of upload Labs

Laravel configures passport and returns token using JWT

Attack and defense world web questions

KnightCTF WEB

2021 geek challenge Web
随机推荐
[kubernetes series] k8s set mysql8 case insensitive
Pytoch viewing model parameter quantity and calculation quantity
Solution cannot use a scalar value as an array
Pit used by go language array type
Fastcgi CGI shallow understanding
Shell programming overview
Mysql database foundation: stored procedures and functions
【BUUCTF】 EasySql
PHP excel export function encapsulation (based on phpexcel class)
Laravel artist command error
Upgrade composer self update
Configuration of headquarters dual computer hot standby and branch infrastructure for firewall Foundation
Service online governance
The first dark spring cup dnuictf
MFQE 2.0: A New Approach for Multi-FrameQuality Enhancement on Compressed Video
DB2 SQL Error: SQLCODE=-206, SQLSTATE=42703
Defi "where does the money come from"? A problem that most people don't understand
【观察】智能产业加速,为何AI算力要先行?
[buuctf] [actf2020 freshman competition]exec1
[observation] as the intelligent industry accelerates, why should AI computing power take the lead?