5.2.3 逻辑表达式······································································································66
5.3 if 语句··························································································································67
5.3.1 if 语句的三种形式 ···························································································67
5.3.2 if 语句的嵌套 ···································································································70
5.3.3 条件运算符和条件表达式 ··············································································72
5.4 switch 语句··················································································································73
5.5 程序举例 ····················································································································74
6 循环控制································································································································76
6.1 概述····························································································································76
6.2 goto 语句以及用 goto 语句构成循环 ·········································································76
6.3 while 语句 ···················································································································77
6.4 do-while 语句 ··············································································································79
6.5 for 语句 ·······················································································································81
6.6 循环的嵌套 ················································································································84
6.7 几种循环的比较 ········································································································84
6.8 break 和 continue 语句 ································································································84
6.8.1 break 语句·········································································································84
6.8.2 continue 语句···································································································85
6.9 程序举例 ····················································································································86
7 数组 ·······································································································································89
7.1 一维数组的定义和引用·····························································································89
7.1.1 一维数组的定义方式 ······················································································89
7.1.2 一维数组元素的引用 ······················································································90
7.1.3 一维数组的初始化··························································································91
7.1.4 一维数组程序举例··························································································92
7.2 二维数组的定义和引用·····························································································93
7.2.1 二维数组的定义······························································································93
7.2.2 二维数组元素的引用 ······················································································94
7.2.3 二维数组的初始化··························································································95
7.2.4 二维数组程序举例··························································································96
7.3 字符数组 ····················································································································96
7.3.1 字符数组的定义
······························································································96
7.3.2 字符数组的初始化··························································································97
7.3.3 字符数组的引用······························································································97
7.3.4 字符串和字符串结束标志 ··············································································98
7.3.5 字符数组的输入输出 ······················································································98
7.3.6 字符串处理函数······························································································99
7.4 程序举例 ··················································································································102
7.5 本章小结 ··················································································································105
8 函 数····································································································································106
8.1 概述··························································································································106
8.2 函数定义的一般形式·······························································································107
8.3 函数的参数和函数的值···························································································109
8.3.1 形式参数和实际参数 ····················································································109