Table of Contents

1 How this Book Teaches you the Language

2 How To Compile and Run a Simple Program

3 How To Declare Variables

4 How To Write Arithmetic Expressions

5 How To Write Statements that Read Information from your Keyboard

6 How To Define Simple Functions

7 How To Benefit from Procedure Abstraction

8 How To Work with Local and Global Variables

9 How To Perform Tests Using Numerical Predicates

10 How To Write One-Way and Two-Way Conditional Statements

11 How To Combine Boolean Expressions

12 How To Write Iteration Statements

13 How To Write Iterative Filters

14 How To Write Recursive Functions

15 How To Solve Definition Ordering Problems with Function Prototypes

16 How To Create Structures and Objects

17 How To Work with Arrays Of Numbers

18 How To Work with Arrays of Structure Objects

19 How To Use Pointer Parameters To Avoid Structure Copying

20 How To Use Pointer Parameters To Alter Values

21 How To Access Array Elements Using Pointers

22 How To Create New Structure Objects at Run Time

23 How To Store Pointers to Structure Objects

24 How To Define Constructor, Reader, and Writer Functions

25 How To Benefit from Data Abstraction

26 How To Write Multiway Conditional Statements

27 How To Use Enumerations to Improve Readability

28 How To Use Type Synonyms to Improve Readability

29 How To Use Unions to Capture Class Distinctions

30 How To Use Bits To Record State Information

31 How To Write Functions that Return Character Strings

32 How To Write Statements that Read Character Strings

33 How To Deposit Character Strings into Structure Objects

34 How To Test String Characters

35 How To Do Tabular Printing

36 How To Read From and Write To Files

37 How To Reclaim Memory

38 How To Tell Time

39 How To Access Command-Line Arguments

40 How To Define Functions with a Variable Number of Arguments

41 How To Arrange for Conditional Compilation

42 How To Arrange Functions in a Multiple-File Program

43 How To Arrange Global Variables in a Multiple-File Program

44 How To Compile a Multiple-File Program

A Print Specifications

B Read Specifications

C Operator Precedence

D Formatted Time Display

E How to Use Sockets to Connect Programs

Colophon