标准C程序设计(第4版)(大学计算机教育国外著名教材系列(影印版))

分類: 图书,计算机/网络,程序设计,C C++ C# VC VC++,
作者: (印)马拉古路萨米著
出 版 社: 清华大学出版社
出版时间: 2009-5-1字数:版次: 1页数: 543印刷时间:开本: 16开印次: 1纸张:I S B N : 9787302197959包装: 平装编辑推荐
本书第3版融入了过去10年中采用本书的学生和老师的很多反馈意见。本版的特点包括:
基于最新的C语言标准。
在本书的最后给出了4个完整的应用程序开发示例。
扩展讨论了C的指针。
每章后面的“谨记”一节给出了很有用的编程提示以及可能容易出错的问题。
20多个真实的开发案例,展示了C程序的设计过程。
80多个程序设计范例,向读者阐述了良好程序设计的基本原则。
还有200多个复习题和150多个项目设计题。
总之,本书的语言简洁易懂,示例非常丰富且具有很强的实际指导意义,是一本很好的C语言程序设计的教材。
内容简介
本书是印度各大学使用最广的C语言程序设计教材之一。
本书旨在教授读者如何使用C语言进行程序设计。全书贯彻了“用示例学习”的概念。在深入介绍了C语言的每个特性之后,给出了一个完整的示例程序,用于演示说明其应用。每章末尾的“案例学习”不仅介绍了把C语言的特性集成在一起的常用方法,而且还显示了它在实际生活中的应用。最后一章介绍了开发高效、无错误的C程序的一些指导原则。
本书在前一版的基础上增加介绍了C99的一些新特性,并增加了不少复习题和项目设计题,而且在附录IV中给出了4个完整的应用程序开发示例,使得本书的实际应用性更强。
目录
Preface to the Fourth Edition
lace to the Fourth Edition
1 Overview of C
1.1 History of C
1.2 Importance of C
1.3 Sample Program 1: Printing a Message
1.4 Sample Program 2: Adding Two Numbers
1.5 Sample Program 3: Interest Calculation
1.6 Sample Program 4: Use of Subroutines
1.7 Sample Program 5: Use of Math Functions
1.8 Basic Structure of C Programs
1.9 Programming Style
1.10 Executing a 'C' Program
1.11 Unix System
1.12 Ms-Dos System
Review Questions
Programming Exercises
2 Constants, Variables, and Data Types
2.1 Introduction
2.2 Character Set
2.3 C Tokens
2.4 KeyWords and identifiers
y words and ldentiners
2.5 Constants
2.6 Variables
2.7 Data Types
2.8 Declaration of Variables
2.9 Declaration of Storage Class
2.10 Assigning Values to Variables
2.11 Defining Symbolic Constants
2.12 Declaring a Variable as Constant
2.13 Declaring a Variable as Volatile
Vi Contents
2.14 Overflow and Underflow of Data
Review Questions
Programming Exercises
3 Operators and Expressions
3.1 Introduction
3.2 Arithmetic Operators
3.3 Relational Operators
3.4 Logical Operators
3.5 Assignment Operators
3.6 Increment and Decrement Operators
3.7 Conditional Operator
3.8 Bitwise Operators
3.9 Special Operators
3.10 Arithmetic Expressions
3.11 Evaluation of Expressions
3.12 Precedence of Arithmetic Operators
3.13 Some Computational Problems
3.14 Type Conversions in Expressions
3.15 Operator Precedence and Associativity
3.16 Mathematical Functions
Review Questions
Programming Exercises
4 Managing input and Output Operations
4.1 Introduction
4.2 Reading a Character
4.3 Writing a Character
4.4 Formatted input
4.5 Formatted Output
Review Questions
Programming Exercises
5 Decision Making and Branching
5.1 Introduction
5.2 Decision Making with iF Statement
5.3 Simple iF Statement
5.4 The IF.....ELSE Statement
5.5 Nesting of IF....ELSE Statements
5.6 The ELSE IF Ladder
5.7 The Switch Statement
5.8 The ?' Operator
5.9 The GOTO Statement
Review Questions
Programming Exercises
Contents
6 Decision Making and Looping
7 Arrays
8 Character Arrays and Strings
9 User-defined Functions
10 Structures and Unions
11 Pointers
12 File Management in C
13 Dynamic Memory Allocation and Linked Lists
14 The Preprocessor
15 Developing a C Program: Some Guidelines
Appendix Ⅰ: Bit-level Programming
Appendix Ⅱ: ASCll Values of Characters
Appendix Ⅲ: ANSI C Library Functions
Appendix Ⅳ: Projects
Appendix Ⅴ: C99 Features
Bibliography