新書推薦:
《
山西寺观艺术彩塑精编卷
》
售價:HK$
1680.0
《
积极心理学
》
售價:HK$
55.8
《
自由,不是放纵
》
售價:HK$
54.9
《
甲骨文丛书·消逝的光明:欧洲国际史,1919—1933年(套装全2册)
》
售價:HK$
277.8
《
剑桥日本戏剧史(剑桥世界戏剧史译丛)
》
售價:HK$
201.6
《
中国高等艺术院校精品教材大系:材料的时尚表达??服装创意设计
》
售價:HK$
76.2
《
美丽与哀愁:第一次世界大战个人史
》
售價:HK$
143.4
《
国家豁免法的域外借鉴与实践建议
》
售價:HK$
188.2
|
編輯推薦: |
本书以案例驱动,将案例贯穿整本书的教学内容。
|
內容簡介: |
本书以案例驱动,将案例贯穿整本书的教学内容,循序渐进、由浅入深;采取知识点与案例实现相对应的方式,安排教学内容;采用增量式的程序设计模式进行内容安排,对任务进行分解、简化问题;*终使学生既能掌握编程语言的思想和方法,又能学有所获。本书可作为高等院校计算机及相关工科类专业学生的教材。
|
關於作者: |
苑俊英,女,2007年至今在中山大学南方学院任教,从事C语言程序设计、数据结构、数据库系统概论、编译原理、计算机应用基础等课程的理论教学及实践教学工作。
|
目錄:
|
第1 章 初识C 语言 ············································································································ 1
1.1 C 语言概述 ··························································································· 1
1.2 C 语言开发环境 ····················································································· 2
1.2.1 运行C 语言程序的步骤和方法 ············································································ 2
1.2.2 *简单的C 语言程序 ························································································ 3
1.3 算法 ···································································································· 4
1.3.1 算法的定义 ···································································································· 4
1.3.2 算法的表示 ···································································································· 4
1.3.3 算法举例 ······································································································· 7
本章小结 ···································································································· 10
习题1 ······································································································· 10
第2 章 C 语言知识在实践中的应用 ·················································································· 11
2.1 案例介绍 ····························································································· 11
2.2 案例分析 ····························································································· 12
2.2.1 显示单个数字 ································································································ 12
2.2.2 依次显示数字 ································································································ 14
2.2.3 无限次或有限次循环显示数字0~9 ····································································· 15
2.2.4 循环显示任意一位指定数字 ·············································································· 15
2.2.5 保存显示过的所有数字 ···················································································· 15
2.2.6 显示多位整数或小数 ······················································································· 15
2.3 增量划分和进度安排 ·············································································· 16
2.4 LED 数码管接口文件 ············································································· 16
本章小结 ···································································································· 18
第3 章 基本数据类型 ······································································································· 19
3.1 基本技能 ····························································································· 19
3.1.1 C 语言的数据类型 ·························································································· 19
3.1.2 标识符 ········································································································· 21
3.1.3 常量 ············································································································ 21
3.2.4 变量 ············································································································ 23
3.2.5 数据的输入、输出 ·························································································· 26
3.2 增量式项目驱动 ···················································································· 31
本章小结 ···································································································· 33
习题3 ······································································································· 34
第4 章 运算符与表达式 ··································································································· 37
4.1 基本技能 ····························································································· 37
4.1.1 算术运算符 ··································································································· 38
4.1.2 关系运算符 ··································································································· 40
4.1.3 逻辑运算符 ···································
|
|