C语言程序设计(双语)课件Chapter 1 Introduction to C_.ppt
《C语言程序设计(双语)课件Chapter 1 Introduction to C_.ppt》由会员分享,可在线阅读,更多相关《C语言程序设计(双语)课件Chapter 1 Introduction to C_.ppt(30页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、C Programming LanguageInstructor:Rao HongComputer Center,Nanchang UniversityE-mail:Reference Books1.1.C C程序设计(第二版),谭浩强,清华大学程序设计(第二版),谭浩强,清华大学出版社出版社2.2.C C程序设计题解与上机指导(第二版),谭程序设计题解与上机指导(第二版),谭浩强,清华大学出版社浩强,清华大学出版社Text BookThe Art and Science of C,Eric S.Roberts China Machine PressRao Hong NCU-Autumn 20
2、04The Art and Science of CBackgroundu This course is adopted from a CS106A at Computer Science Department of Stanford University.u Most of the materials(textbook,some handouts,software as well as most assignments)we will use in the class is adopted from CS106A of Stanford.Rao Hong NCU-Autumn 2004The
3、 Art and Science of CCS106A at StanfordCS106A is one of the largest coursed at Stanford.Its enrollment now is over 900 a year.Together with 106B,this series teaches you the C programming language,which is widely used in industry.CS106 is explicitly designed to appeal to humanists and social scientis
4、ts as well as hardcore technology disciplines.The course requires no previous background in programming,but does require considerable dedication and hard work.Rao Hong NCU-Autumn 2004The Art and Science of CGradesThe ordinary score 20%includes the quiz and all the assignments The Final Examination w
5、ill be 80%of the total score.Rao Hong NCU-Autumn 2004The Art and Science of CTimetableRao Hong NCU-Autumn 2004The Art and Science of CLecture 1Chapter 1 Introduction to CRelated Chapters Sections 1.4-1.9,Sections 2.12.3 ObjectivesTo understand the meaning of the term algorithmTo appreciate the role
6、of the compiler as a translator between a higher-level programming language and the low-level machine languageTo recognize that many simple programs are composed of three phases:input,computation,and output.To understand the role of variables in a program as placeholders for data values.Rao Hong NCU
7、-Autumn 2004The Art and Science of C1.AlgorithmA strategy for solving a problem,must be Clearly and unambiguously definedEffective,in the sense that its steps are executable;Finite,in the sense that it terminates after a bounded number of stepsRao Hong NCU-Autumn 2004The Art and Science of C2.Progra
8、mming Language and compilation Programming Language Classified asLow Level Machine Language(binary-based code;machine dependent)Rao Hong NCU-Autumn 2004The Art and Science of CProgramming Language Classified asHigh Level Closer to natural languages.Generally,machine independent Usually,several machi
9、ne instructions are combined into one high-level instruction.Examples:FORTRAN COBOLBASIC JavaPascal Ada PL/I LispC GPSSC+Matlab Rao Hong NCU-Autumn 2004The Art and Science of CPrograms written in high-level languages must be converted to machine language.Two approaches:(1)Compilation(see p.12 Figure
10、1-2)Used with C,C+,Fortran,.(2)InterpretationUsed with Matlab,Visual Basic,.Processing a High-level Language ProgramRao Hong NCU-Autumn 2004The Art and Science of CThe Compilation Process#include main()printf(“hellon”);110111100101111010001010110010101001010101010010011100011101111001011110100010101
11、100101010010101011010001010110010101001010101compilerlinkerExecutable fileObject FileOther Object Files/LibrariesSource FileRao Hong NCU-Autumn 2004The Art and Science of CStep 1)Use TC to create a“source”file.We will name source files with a suffix“.c”Step 2)Run the compiler on the source file to c
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- C语言程序设计双语课件Chapter Introduction to C_ 语言程序设计 双语 课件 Chapter
限制150内