08-循环
循环 It is better to have 100 functions operate on one data structure than 10 functions on 10 data structures. [^1] 目录 [TOC] 循环 本章将介绍 C 语言的重复语句(迭代语...
10-函数
函数 If you have a procedure with 10 parameters, you probably missed some. [^1] 目录 [TOC] 函数 零 前言 函数这个概念源自数学。在其他语言中,函数也叫方法,过程等。所以,编程中函数与数学中的函数是不同的。 ...
09-数组
数组 Get into a rut early: Do the same processes the same way. Accumulate idioms. Standardize. The only difference (!) between Shakespeare and you wa...
11-程序结构
程序结构 Recursion is the root of computation since it trades description for time. [^1] 目录 [TOC] 程序结构 零 前言 《C 语言程序设计——现代方法》一书中,将此章节安排在了函数之后。在我看来,这样安...
12-指针
指针 If two people write exactly the same program, each should be put in micro-code and then they certainly won’t be the same. 目录 [TOC] 指针 零 前言 指针是...
14-字符串
字符串 Everything should be built top-down, except the first time. ^1 目录 [TOC] 字符串 零 前言 前几章虽然我们用过 char 类型变量和 char 类型数组,但我们始终没有谈到处理字符序列(C 的术语是字符串)的便捷...
15-预处理器
预处理器 Every program has (at least) two purposes: the one for which it was written and another for which it wasn’t.[^1] 目录 [TOC] 预处理器 零 前言 前面我们用到的 ...
16-编写大型程序
编写大型程序 If a listener nods his head when you’re explaining your program, wake him up. [^1] 目录 [TOC] 编写大型程序 零 源文件 到现在为止一直假设 C 程序是由单独一个文件组成的。事实上,可以把...
17-结构&联合&枚举
结构&联合&枚举 A program without a loop and a structured variable isn’t worth writing. [^1] 目录 结构&联合&枚举 零 前言 可以参考学习的文章:https://mp.weixi...
18-指针的高级应用
指针的高级应用 A language that doesn’t affect the way you think about programming, is not worth knowing. [^1] 目录 [TOC] 指针的高级应用 零 前言 相关文章参考: https://mp....