第一讲C语言程序设计入门a.ppt

  1. 1、本文档共38页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
第一讲C语言程序设计入门a

C语言程序设计 Program Design in C Language 主要内容 Contents 第一讲 C语言程序设计入门 第二讲 数据类型、运算符和表达式 第三讲 顺序结构 第四讲 选择结构 第五讲 循环结构 第六讲 函数 第七讲 数组与字符串 第八讲 指针 第九讲 结构 第十讲 文件处理 第十一讲 预处理器 参考书目 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 第一讲 C语言程序设计入门 Introduction 计算机系统 Computer System 计算机(Computer) 能进行计算(computations)和逻辑判断(logical decisions) 在一组指令(instructions)——程序(programs)的控制下处理数据(process data) 硬件(Hardware) Various devices comprising a computer Keyboard, mouse, screen, memory, disks, CD-ROM, and processing units 软件(Software) Programs that run on a computer 计算机的组织 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 计算机语言 Computer Language 三种编程语言(programming language): 机器语言(Machine language) 机器指令(machine instruction) 汇编语言(Assembly language) 类似英文的缩写来表示基本操作(elementary operation) 通过汇编程序(assembler)翻译成机器语言 高级语言(High-level language) 代码(code)类似日常英语 使用数学符号(mathematical notations) 通过编译程序(compiler)翻译成机器语言 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(OS,操作系统) Hardware independent (portable)(可移植) By late 1970s C had evolved to Traditional C 标准化(Standardization) 许多互不兼容(incompatible)的C的变种(variations),差异很小 成立委员会建立 “unambiguous, machine-independent” (明确的,独立于机器的)定义 正式的标准(ANSI)诞生于1989年(C89), 在1999作了重

您可能关注的文档

文档评论(0)

youbika + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档