当前位置:网站首页>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
边栏推荐
- Notepad regular delete the line of the keyword
- PHP generate images into Base64
- Cost forecast of PMP (BAC, EAC, etc)
- Solve the error in my QT_ thread_ global_ End(): 3 threads didn't exit
- When SQL queries are performed in table storage, an error is reported when the primary key is added to the query result, and the query result exceeds 10W rows. Do you want to add multiple indexes to t
- Upgrade composer self update
- Details of gets, fgetc, fgets, Getc, getchar, putc, fputc, putchar, puts, fputs functions
- "As a service", the inevitable choice of enterprise digital transformation
- Dart extended feature
- Embedded development: five C features that may no longer be prohibited
猜你喜欢
More than 20 years after Hong Kong's return, Tupu digital twin Hong Kong Zhuhai Macao Bridge has shocked
Notes on reverse learning in the first week of winter vacation
Summary of use of laravel DCAT admin
Crypto questions
Shell programming overview
The first three passes of sqli Labs
XSS challenge (1-5) more detailed answers
Getting started with shell Basics
Thinkphp5 log file contains trick
ctfshow nodejs
随机推荐
Small exercise of process and signal
Initial attack and defense world Misc
@ResponseBody的作用
Mysql database foundation: stored procedures and functions
[observation] as the intelligent industry accelerates, why should AI computing power take the lead?
想請教一下,我在佛山,到哪裏開戶比較好?手機開戶是安全麼?
QQ 居然被盗了?原因在这......
ThinkPHP v3.2 comment annotation injection write shell
Flat shading with unity
[kubernetes series] k8s set mysql8 case insensitive
DB2 SQL Error: SQLCODE=-206, SQLSTATE=42703
PHP excel export function encapsulation (based on phpexcel class)
XSS challenge (6-10) more detailed answers
Numpy creates an empty array data = np empty(shape=[1, 64,64,3])
On simple code crawling Youdao translation_ 0's problem (to be solved)
I love network security for new recruitment assessment
Larave8 JWT API expiration custom error return
notepad正则删除关键词所在行
[scientific research data processing] [practice] frequency analysis chart of category variables, distribution chart of numerical variables and normality test (including lognormal)
In the digital age, XDR (extended detection and response) has unlimited possibilities