当前位置:网站首页>C programming language (2nd Edition) -- Reading Notes -- 1.5
C programming language (2nd Edition) -- Reading Notes -- 1.5
2022-07-27 11:28:00 【YovaVan】
Look at a group of programs dealing with character data . Will find , Many programs are extensions of the program prototype .
Input from the standard library / The output model is simple . No matter where the text is entered , Where to export , Its input / Output is processed in the way of character stream . A text stream is a sequence of characters composed of multiple lines of characters , Each line of characters is composed of 0 Or more than one character , The end of the line is a newline . The standard library makes every input / The output stream can follow this model . Use standard library C Language programmers don't have to worry about how these lines are represented outside the program .
Provided by standard library once read / Write One Character functions , The simplest is getchar and putchar function . Every time you call ,getchar Function reads the next input character from the text stream , And return it as the result value . namely , perform
c = getchar()after , Variable c Will contain the next character in the input stream . This kind of character is usually input by keyboard . The method of inputting characters from files will be discussed in Chapter 7 .
Every time you call putchar Function will print a character . for example
putchar()Will set integer variables c The contents of are printed in character form , It is usually displayed on the screen .putchar And printf Functions can be called alternately , The output order is consistent with the call order .
边栏推荐
- Solve importerror: cannot import name'abs'import tensorflow error
- What is the issuing price of NFT (Interpretation of NFT and establishment of NFT world outlook)
- 9 UAV array
- Tree DP acwing 285. dance without boss
- 10 complete half of the questions
- Raw socket grabs packets, and packets on some ports cannot be caught
- Find the combination number acwing 887. find the combination number III
- JVM judges that the object is dead, and practices verify GC recycling
- Miscellaneous records of Finance
- The longest ascending subsequence model acwing 1016. The sum of the largest ascending subsequence
猜你喜欢

Instructions for mock platform

Solutions to errors in tensorflow operation

Remember an experience of using canvas to make the banner streamer effect of Tencent cloud homepage

How to build a real-time development platform to deeply release the value of enterprise real-time data?

数字三角形模型 AcWing 1018. 最低通行费

Game theory acwing 894. Split Nim game
![[shader realizes shake random shaking effect _shader effect Chapter 10]](/img/49/99669ebc3ba59a0277bb8bc928f576.png)
[shader realizes shake random shaking effect _shader effect Chapter 10]

Find the combination number acwing 886. find the combination number II

49字母异位分组和242有效的字母异位词

Redis+caffeine two-level cache enables smooth access speed
随机推荐
高斯消元 AcWing 884. 高斯消元解异或线性方程组
2022 Niuke multi school (3) j.journey
Analysis of distributed database and cache double write consistency scheme (Reprint)
Properties file
Game theory acwing 893. Set Nim game
Installation and use of GTEST and gmock
Moveit2 - 5. Scenario Planning
A deep analysis of the soul of C language -- pointer
博弈论 AcWing 893. 集合-Nim游戏
An article reveals the NFT strategy of traditional game manufacturers such as Ubisoft
Vscode establishes automatic search of header files under non engineering directories
I've compromised. Since everyone wants to call me Yelin, there's nothing I can do
ethereum rpc
7 row K with the weakest combat effectiveness in the matrix
NFT leaderboard -nft real offer latest address: NFT leaderboard.com
Today's code farmer girl learned notes about event operation and ref attribute, and did the practice of form two-way binding
2022牛客多校训练(3)A-Ancestor 题目翻译
Basic use of cmake
Find the combinatorial number acwing 889. 01 sequence satisfying the condition
IO stream_ Overview and explanation of data input and output flow