Stephen G. Kochan有20多年使用C语言进行软件开发的经验,是多本畅销的C语言和Unix方面经典图书的作者,包括Programming in ANSI C、Topics in C Program-ming、Exploring the Unix System、Unix Shell Programming 和Unix System Security,最近还出版了Programming in Objective-C。他曾是AT&T贝尔实验室的软件顾问,主要负责开发和讲授UNIX和C程序设计方面的课程。 |
1 Introduction 2 Some Fundamentals Programming Higher-Level Languages Operating Systems Compiling Programs Integrated Development Environments Language Interpreters 3 Compiling and Running Your First Program Compiling Your Program Running Your Program Understanding Your First Program Displaying the Values of Variables Comments Exercises 4 Variables, Data Types, and Arithmeti Expressions Working with Variables Understanding Data Types and Constants The Basic Integer Type int The Floating Number Type float The Extended Precision Type double The Single Character Type char The Boolean Data Type Bool Type Specifiers: long, long long, short,unsigned,and signed Working with Arithmetic Expressions Integer Arithmetic and the Unary Minus Operator The Modulus Operator Integer and Floating-Point Conversions Combining Operations with Assignment: The Assignment Operators Types, Complex and Imaginary Exercises 5 Program Looping The for Statement Relational Operators Aligning Output Program Input Nested for Loops for Loop Variants The while Statement The do Statement The break Statement The continue Statement Exercises 6 Making Decisions The if Statement The if-else Construct Compound Relational Tests Nested if Statements The else if Construct The switch Statement Boolean Variables The Conditional Operator Exercises 7 Working with Arrays Defining an Array Initializing Arrays Character Arrays Multidimensional Arrays Variable-Length Arrays Exercises 8 Working with Functions 9 Working with Structures 10 Character Strings 11 Pointers 12 Operations on Bits 13 The Preprocessor 14 More on Data Types 15 Working with Larger Programs 16 Input and Output Operations in C 17 Miscellaneous and Advanced Features 18 Debugging Programs 19 Object-Oriented Programming A C Language Summary B The Standard C Library C Compiling Programs with gcc D Common Programming Mistakes E Resources |
商品评论(0条)