简介
本书不同于以往C语言经典入门教材的内容组织和写作方法,而是采用以学生为中心的C编程教学方法,从工程的视角利用编程这一手段来解决问题的一般步骤入手,告诉大家代码是如何从简单的字母一步一步变成真正可以运行的程序,终教会学生们轻松而又愉快地理解C语言、会用C语言、善用C语言。本书贯穿强调了实际编程时需要注意的各种规范和调试方法,有助于学生们在学习C语言之初,就能养成良好的编程习惯。本书中还着重强调了学生们要学会先思考问题、再设计解决方案、然后实现代码并且不断地调试和调优的编程模式,也强调了学生们要以小组为单位,团队协作共同解决同一个问题。这是一本真正意义上可以指导学生如何在一个实际的工业界C语言开发项目中进行编程和调试的教材。本书内容全面,通俗易懂,适合无基础或初级基础学习者学习。
目录
1 Programming in C: anOverview.............................1
1.1 C ProgramDevelopment Cycle..................................................2
1.2 Basic ProgrammingTools and Concepts....................................4
1.3 Playing with Basic CLanguage Primitives and Data Types.......6
1.3.1 C Program Skeletonor Structure...................................................7
1.3.2 Create Your First CProgram ........................................................9
1.3.3 UnderstandingPreprocessor-generated Files...............................14
1.3.4 Compilation Processand Error Classes.......................................18
1.3.5 Playing withSemantic and Syntax Errors ..................................22
1.3.6 Playing with RuntimeErrors: the Debugging Process ...............25
1.4 Playing with TypeDefinition, Arrays and Structure ................31
1.5 Playing with CLanguage Constructs........................................35
1.6 Playing with CFunction and Pointer........................................46
2 Hands-on Functions..............................................54
2.1 Algorithm andProgramming....................................................55
2.2 Function Declarationand Definition.........................................62
2.3 Function Call Typesand Their Mechanisms.............................68
2.4 Function andProgramming Modularity....................................72
2.5 Function Scope andVariable Lifetime......................................81
2.6 RecursiveFunction...................................................................96
3 Hands-on-Pointers: TheBasics..........................104
3.1 Pointer andMemory...............................................................105
3.2 Pointer Expressionsand Arithmetic........................................110
3.3 Pointer andArrays...................................................................113
3.4 Pointers andStructures...........................................................125
4 Hands-on-Pointers: Advanced Features............144
4.1 Pointers andFunctions...........................................................145
4.2 Command LineArguments: Arguments to Main().................153
4.3 File System Basicsand the File Pointer .................................162
4.4 Dynamic MemoryManagement in C and Linked List...........170
5 From C toC ......................................................181
5.1 A Brief Overview ofC Main Features...............................182
5.2 Usage of Some CKey Concepts........................................184
INDEX..........................................................................205
- 名称
- 类型
- 大小
光盘服务联系方式: 020-38250260 客服QQ:4006604884
云图客服:
用户发送的提问,这种方式就需要有位在线客服来回答用户的问题,这种 就属于对话式的,问题是这种提问是否需要用户登录才能提问
