当前位置:网站首页>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 .
边栏推荐
- Remember not to copy your group work, students. Fortunately, you only passed two questions. Don't have an accident
- 349 sum of intersection of two arrays and 01
- Instructions for mock platform
- When std:: bind meets this
- 2022 Niuke multi school training (3) a-ancestor topic translation
- 求组合数 AcWing 886. 求组合数 II
- 2022牛客多校训练(3)A-Ancestor 题目翻译
- Luogu p1896 non aggression
- Sorry, you guys have something to deal with in the bank recently, which has been delayed
- Find the combination number acwing 886. find the combination number II
猜你喜欢

状态压缩DP AcWing 91. 最短Hamilton路径

ethereum rpc

记忆化搜索 AcWing 901. 滑雪

Find the combination number acwing 888. find the combination number IV

JVM judges that the object is dead, and practices verify GC recycling

背包模型 AcWing 1022. 宠物小精灵之收服

Kepserver configuration

高斯消元 AcWing 884. 高斯消元解异或线性方程组

MySQL installation (RPM package)

49 letter ectopic grouping and 242 effective letter ectopic words
随机推荐
Verilog implementation of ECG signal acquisition, storage and transmission system based on FPGA
14 check whether integers and their multiples exist
Force buckle - 10. Regular expression matching
(8) Shell function
Find the combinatorial number acwing 889. 01 sequence satisfying the condition
Sorry, you guys have something to deal with in the bank recently, which has been delayed
Game theory acwing 891. Nim game
Quantitative industry knowledge summary
Budweiser, a well-known beer, plans to launch NFT in an attempt to unveil the "long planned" uplink?
【着色器实现Shake随机摇动效果_Shader效果第十篇】
The difference between extern and static
An article reveals the NFT strategy of traditional game manufacturers such as Ubisoft
Yiwen counts NFT projects valued at more than US $100million
[FPGA tutorial case 40] communication case 10 -- Verilog implementation of a simple OFDM system based on FPGA
最长上升子序列模型 AcWing 1014. 登山
TensorFlow张量运算函数集
What is the mystery of the gate of the meta universe?
Markdown editor syntax - setting of text color, size, font and background color (Reprint)
Remember not to copy your group work, students. Fortunately, you only passed two questions. Don't have an accident
Game theory acwing 894. Split Nim game