当前位置:高等教育资讯网  >  中国高校课件下载中心  >  大学文库  >  浏览文档

《C语言》PPT自学课件(共十一讲)

资源类别:文库,文档格式:PPT,文档页数:486,文件大小:2.74MB,团购合买
第一讲 C语言程序设计入门 第二讲 数据类型、运算符和表达式 第三讲 顺序结构 第四讲 选择结构 第五讲 循环结构 第六讲 函数 第七讲 数组与字符串 第八讲 指针 第九讲 结构 第十讲 文件处理 第十一讲预处理器
点击下载完整版文档(PPT)

设语自囤程序遐双偈课 0镥言程寿锻饼 Program Design in c Language 汪同庆 张华 二零零二年武汉大学教学改革资助项目

C语言程序设计 Program Design in C Language 二 零 零 二 年 武 汉 大 学 教 学 改 革 资 助 项 目 汪同庆 张 华 计 算 机 语 言 和 程 序 设 计 双 语 课 件

PROGRAM DESIGN IN C LANGUAGE 主要内容 Contents 第一讲C语言序设计入门 Introduction 第二讲数据奏型、运算符和表达式◎ Data types, operators and expressions 第三讲顺序结构 o Sequence structure 第四讲选择结构◎ Selection structure 第五讲循环结构◎ Repetition structure 第六讲函◎ Functions 第七讲数组与字符串 o Arrays and strings 第八讲指针 Pointers 第九讲結构 o Structures 第十讲文件处理 o File processing 第十一讲预处理暴 The preprocessor 学习程序设计的目的是进行程序设计的基本训练,学握程序设计的基本方法。 We wide cearm the c programming language and structured programming tecHniques

主要内容 Contents 第一讲 C语言程序设计入门 第二讲 数据类型、运算符和表达式 第三讲 顺序结构 第四讲 选择结构 第五讲 循环结构 第六讲 函数 第七讲 数组与字符串 第八讲 指针 第九讲 结构 第十讲 文件处理 第十一讲 预处理器 Program Design in C Language Introduction Data types, operators and expressions Sequence structure Selection structure Repetition structure Functions Arrays and strings Pointers Structures File processing The preprocessor 学习程序设计的目的是进行程序设计的基本训练,掌握程序设计的基本方法。 We will learn the C programming language and structured programming techniques

PROGRAM DESIGN IN C LANGUAGE 参考书目 References b The C Programming Language Brian W. Kernighan Dennis M. Ritchie L C How to program Harvey M. Deitel Paul J. Deitel 日C语言程序设计 杨健霑 刘英 康卓 L Data Structure program Design in C Robert kruse Clovis L. Tondo Bruce P. Leung 目录

参考书目 References The C Programming Language – Brian W. Kernighan – Dennis M. Ritchie C How to Program – Harvey M. Deitel – Paul J. Deitel C 语言程序设计 – 杨健霑 – 刘英 – 康卓 Data Structure & Program Design in C – Robert Kruse – Clovis L. Tondo – Bruce P. Leung Program Design in C Language 目 录

PROGRAM DESIGN IN C LANGUAGE 第一讲C语言程序设计入门 I introdnction 1.1计算机基础回顾 Review of Computer Basic 1.2C语言的墩展 C Language s Evolution 1.3结构化程序设计 Structured Programming 1.4C程序的基本结构 Basic Structure of A C Program 1.5C语宫程序的开发 C Program Development 目录

第一讲 C语言程序设计入门 Introduction Program Design in C Language 目 录 1.2 C语言的发展 C Language's Evolution 1.3 结构化程序设计 Structured Programming 1.4 C程序的基本结构 Basic Structure of A C Program 1.5 C语言程序的开发 C Program Development 1.1 计算机基础回顾 Review of Computer Basic

REWIEW OF COMPUTER BASIC 计算机糸统 Computer System 口计算机( Computer) 能进行计算( computations)和逻辑判断( logical decisions) 在一组指令( instructions)一程序( programs)的控制下处理数据 (process data) 口硬件( Hardware) Various devices comprising a computer Keyboard, screen, mouse, disks, memory, CD-ROM, and processing units 软件( Software) Programs that run on a computer 第一讲〔语言报疹计入门 目录

计算机系统 Computer System 计算机(Computer) – 能进行计算(computations)和逻辑判断(logical decisions) – 在一组指令(instructions)——程序(programs)的控制下处理数据 (process data) 硬件(Hardware) – Various devices comprising a computer – Keyboard, screen, mouse, disks, memory, CD-ROM, and processing units 软件(Software) – Programs that run on a computer reVieW oF ComPuTer BasiC 第一讲 C语言程序设计入门 目 录

REWIEW OF COMPUTER BASIC 计算机的组织 Computer Organization 口计算机包括六大部件: - Input unit(输入单元) Obtains information from input devices(key board, mouse) Output unit(输出单元) Outputs information(to screen, to printer, to control other devices) Memory unit(内存 Rapid access, low capacity, stores input information Central processing unit(cPU)(中央处理单元) Arithmetic and logic unit(ALU)(算术逻辑单元 Performs arithmetic calculations and logic decisions Control unit(控制器) Supervises and coordinates the other sections of the computer - Secondary storage unit(辅助存储器) Cheap, long-term, high-capacity storage Stores inactive programs 第一讲〔语言报疹计入门 目录

计算机的组织 Computer Organization 计算机包括六大部件: – Input unit(输入单元) • Obtains information from input devices (keyboard, mouse) – Output unit(输出单元) • Outputs information (to screen, to printer, to control other devices) – Memory unit(内存) • Rapid access, low capacity, stores input information – Central processing unit (CPU)(中央处理单元) • Arithmetic and logic unit (ALU)(算术逻辑单元) – Performs arithmetic calculations and logic decisions • Control unit(控制器) – Supervises and coordinates the other sections of the computer – Secondary storage unit(辅助存储器) • Cheap, long-term, high-capacity storage • Stores inactive programs reVieW oF ComPuTer BasiC 第一讲 C语言程序设计入门 目 录

REWIEW OF COMPUTER BASIC 计算机语言 Computer Language 三种编程语言( programming language): 机器语言( Machine language) 机器指令( machine instruction) 汇编语言( Assembly language) 类似英文的缩写来表示基本操作( elementary operation) 通过汇编程序( assembler)翻译成机器语言 高级语言(High- evel language) 代码(code)类似日常英语 使用数学符号( mathematical notations) ·通过编译程序( compiler)翻译成机器语言 0110001100000110 工OAD 0110010111001100 ADD Z X+ Y 0000110000011011 STORE Z Machine Language Assembly Language High-level Language 第一讲〔语言报疹计入门 目录

计算机语言 Computer Language 三种编程语言(programming language): – 机器语言(Machine language) • 机器指令(machine instruction) – 汇编语言(Assembly language) • 类似英文的缩写来表示基本操作(elementary operation) • 通过汇编程序(assembler)翻译成机器语言 – 高级语言(High-level language) • 代码(code)类似日常英语 • 使用数学符号(mathematical notations) • 通过编译程序(compiler)翻译成机器语言 reVieW oF ComPuTer BasiC 第一讲 C语言程序设计入门 目 录 0110001100000110 0110010111001100 0000110000011011 LOAD X ADD Y STORE Z Z = X + Y Machine Language Assembly Language High-level Language

C LANGUAGES EVOLUTION AND FEA TURES C语言的发畏 C LAnguages Evolution 日 Traditional C Evolved by Ritchie from two previous programming languages, BCPL and B Used to develop UNIX Used to write modern operating systems Hardware independent( portable)(可移植) o.. By late 1970's C had evolved to"Traditional C" 标准化( Standardization) 许多互不兼容( incompatible)的c的变种( variations),差异很小 成立委员会建立“ unambiguous, machine-independent”(明确的,独立于 机器的)定义 正式的标准诞生于1989年(c89),在1999作了重大更新(c99) 第一讲〔语言报疹计入门 目录

C语言的发展 C Language’s Evolution Traditional C – Evolved by Ritchie from two previous programming languages, BCPL and B – Used to develop UNIX – Used to write modern operating systems – Hardware independent (portable)(可移植) – By late 1970's C had evolved to "Traditional C" 标准化(Standardization) – 许多互不兼容(incompatible)的C的变种(variations),差异很小 – 成立委员会建立 “unambiguous, machine-independent” (明确的,独立于 机器的)定义 – 正式的标准诞生于1989年(C89), 在1999作了重大更新(C99) C Language’s eVoLuTion anD FeaTures 第一讲 C语言程序设计入门 目 录

STRUCTURED PROGRAMMING 程序概念 Program Concept 口程序的概念 程序是计算机解决问题所需的一系列指令的集合。 A program is a set of self-contained instructions that tells a computer how to solve a problem or carry out a task. 口程序=数据结构十算法十程序设计方法十语言工具和编程环境 数据结构( Data structure)是数据的类型和数据的组织形式。 算法( Algorithm)是为解决某个特定的问题而采用的确定且有限的步骤。 程序设计方法( Programming method) 语言工具和编程环境( Language tools and programming environment) 第一讲〔语言报疹计入门 目录

程序概念 Program Concept 程序的概念 – 程序是计算机解决问题所需的一系列指令的集合。 – A program is a set of self-contained instructions that tells a computer how to solve a problem or carry out a task. 程序=数据结构+算法+程序设计方法+语言工具和编程环境 – 数据结构(Data structure)是数据的类型和数据的组织形式。 – 算法(Algorithm)是为解决某个特定的问题而采用的确定且有限的步骤。 – 程序设计方法(Programming method) – 语言工具和编程环境(Language tools and programming environment) sTruCTureD Programming 第一讲 C语言程序设计入门 目 录

STRUCTURED PROGRAMMING 倒1-1简单程序设计 A Simple program Design 日问题 求方程ax+bx+c=0的根(设b2-4ac≥0) 口程序设计步骤 定义数据结构 Define data structure 设计算法 Design algorithm 确定程序设计方法 Select a programming method 确定语言和开发环境 Select a computer language and programming environment 实现 Implementation 第一讲〔语言报疹计入门 目录

例1-1 简单程序设计 A Simple Program Design 问题 – 求方程ax2+bx+c=0的根(设b2-4ac≥0) 程序设计步骤 – 定义数据结构 Define data structure – 设计算法 Design algorithm – 确定程序设计方法 Select a programming method – 确定语言和开发环境 Select a computer language and programming environment – 实现 Implementation sTruCTureD Programming 第一讲 C语言程序设计入门 目 录

点击下载完整版文档(PPT)VIP每日下载上限内不扣除下载券和下载次数;
按次数下载不扣除下载券;
24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
共486页,可试读40页,点击继续阅读 ↓↓
相关文档

关于我们|帮助中心|下载说明|相关软件|意见反馈|联系我们

Copyright © 2008-现在 cucdc.com 高等教育资讯网 版权所有