06-表达式
表达式 Symmetry is a complexity reducing concept (co-routines include sub-routines); seek it everywhere. [^1] 目录 [TOC] 一 算术运算符 1.概念 一元运算符(只需要 1 个操...
08-循环
循环 It is better to have 100 functions operate on one data structure than 10 functions on 10 data structures. [^1] 目录 [TOC] 循环 本章将介绍 C 语言的重复语句(迭代语...
09-数组
数组 Get into a rut early: Do the same processes the same way. Accumulate idioms. Standardize. The only difference (!) between Shakespeare and you wa...
10-函数
函数 If you have a procedure with 10 parameters, you probably missed some. [^1] 目录 [TOC] 函数 零 前言 函数这个概念源自数学。在其他语言中,函数也叫方法,过程等。所以,编程中函数与数学中的函数是不同的。 ...
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] 指针 零 前言 指针是...
13-指针和数组
指针和数组 In the long run every program becomes rococo - then rubble. [^1] 目录 指针与数组 零 前言 C 语言中指针和数组的关系是非常紧密的。当指针指向数组元素时,C 语言允许对指针进行算术运算(加减),通过这种运算我们可...
17-结构&联合&枚举
结构&联合&枚举 A program without a loop and a structured variable isn’t worth writing. [^1] 目录 结构&联合&枚举 零 前言 可以参考学习的文章:https://mp.weixi...
14-字符串
字符串 Everything should be built top-down, except the first time. ^1 目录 [TOC] 字符串 零 前言 前几章虽然我们用过 char 类型变量和 char 类型数组,但我们始终没有谈到处理字符序列(C 的术语是字符串)的便捷...
16-编写大型程序
编写大型程序 If a listener nods his head when you’re explaining your program, wake him up. [^1] 目录 [TOC] 编写大型程序 零 源文件 到现在为止一直假设 C 程序是由单独一个文件组成的。事实上,可以把...