当前位置:网站首页>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 .
边栏推荐
- Win10 vscode code code format setting and remote breakpoint debugging
- [shader realizes shake random shaking effect _shader effect Chapter 10]
- 数字三角形模型 AcWing 275. 传纸条
- What changes will metauniverse bring to the music industry in the trillion market?
- Kepserver configuration
- 2022 Niuke multi school training (3) a-ancestor topic translation
- 博弈论 AcWing 893. 集合-Nim游戏
- 2022牛客多校训练(3)A-Ancestor 题目翻译
- Where is the big data open source project, one-stop fully automated full life cycle operation and maintenance steward Chengying (background)?
- Smart pointer (shared_ptr, unique_ptr, weak_ptr)
猜你喜欢

MySQL installation (RPM package)

数字三角形模型 AcWing 275. 传纸条

Game theory acwing 894. Split Nim game

NFT leaderboard -nft real offer latest address: NFT leaderboard.com

A deep analysis of the soul of C language -- pointer

49 letter ectopic grouping and 242 effective letter ectopic words

Yiwen counts NFT projects valued at more than US $100million

Caused by:org.gradle.api.internal. plugins . PluginApplicationException: Failed to apply plugin

Knapsack problem acwing 9. grouping knapsack problem

Pat (Grade B) 2022 summer exam
随机推荐
Redis simple to use
Gaussian elimination acwing 884. Gaussian elimination for solving XOR linear equations
状态压缩DP AcWing 91. 最短Hamilton路径
NFT leaderboard -nft real offer latest address: NFT leaderboard.com
Why is the data service API the standard configuration of the data midrange when we take the last mile of the data midrange?
ACM warm-up Exercise 1 in 2022 summer vacation (summary)
12 is at least twice the maximum number of other numbers
MySQL installation (RPM package)
Digital triangle model acwing 275. pass note
6 find the smallest letter larger than the target letter
Memory search acwing 901. Skiing
数字三角形模型 AcWing 275. 传纸条
区间问题 AcWing 906. 区间分组
When std:: bind meets this
What changes will metauniverse bring to the music industry in the trillion market?
Knapsack model acwing 423. Picking herbs
解决 ImportError: cannot import name 'abs' 导入tensorflow报错
Caused by:org.gradle.api.internal.plugins . PluginApplicationException: Failed to apply plugin
Kangaroo cloud stack based on CBO in spark SQL optimization
Caused by:org.gradle.api.internal. plugins . PluginApplicationException: Failed to apply plugin