| |
| |
Introduction | |
| |
| |
| |
At a Glance | |
| |
| |
Where You're Going | |
| |
| |
| |
Getting Started with C.A Brief History of the C Language | |
| |
| |
Why Use C? Preparing to Program | |
| |
| |
The Program Development Cycle | |
| |
| |
Your First C Program | |
| |
| |
| |
Printing Your Listings | |
| |
| |
The First Type & Run | |
| |
| |
| |
The Components of a C Program | |
| |
| |
A Short C Program | |
| |
| |
The Program's Components | |
| |
| |
A Review of the Parts of a Program | |
| |
| |
| |
Storing Information: Variables and Constants | |
| |
| |
Understanding Your Computer's Memory | |
| |
| |
Storing Information with Variables | |
| |
| |
Numeric Variable Types | |
| |
| |
Constants | |
| |
| |
| |
The Pieces of a C Program: Statements, Expressions, and Operators | |
| |
| |
Statements | |
| |
| |
Understanding Expressions | |
| |
| |
Operators | |
| |
| |
The if Statement | |
| |
| |
Evaluating Relational Expressions | |
| |
| |
The Logical Operators | |
| |
| |
More on True/False Values | |
| |
| |
Operator Precedence Revisited | |
| |
| |
| |
Find the Number | |
| |
| |
| |
Packaging Code in Functions | |
| |
| |
What Is a Function? How a Function Works | |
| |
| |
Functions and Structured Programming | |
| |
| |
Writing a Function | |
| |
| |
Passing Arguments to a Function | |
| |
| |
Calling Functions | |
| |
| |
Where the Functions Belong | |
| |
| |
Working with Inline Functions | |
| |
| |
| |
Basic Program Control | |
| |
| |
Arrays: The Basics | |
| |
| |
Controlling Program Execution | |
| |
| |
Nested Loops | |
| |
| |
| |
Fundamentals of Reading and Writing Information | |
| |
| |
Displaying Information On-Screen | |
| |
| |
Inputting Numeric Data with scanf() | |
| |
| |
Using Trigraph Sequences | |
| |
| |
Week 1 In Review | |
| |
| |
| |
At a Glance | |
| |
| |
Where You're Going | |
| |
| |
| |
Using Numeric Arrays | |
| |
| |
What Is an Array? Naming and Declaring Arrays | |
| |
| |
| |
Understanding Pointers | |
| |
| |
What Is a Pointer? Pointers and Simple Variables | |
| |
| |
Pointers and Variable Types | |
| |
| |
Pointers and Arrays | |
| |
| |
Pointer Cautions | |
| |
| |
Array Subscript Notation and Pointers | |
| |
| |
Passing Arrays to Functions | |
| |
| |
| |
Pausing for a Second or Two | |
| |
| |
| |
Working with Characters and Strings | |
| |
| |
The char Data Type | |
| |
| |
Using Character Variables | |
| |
| |
Using Strings | |
| |
| |
Strings and Pointers | |
| |
| |
Strings Without Arrays | |
| |
| |
Displaying Strings and Characters | |
| |
| |
Reading Strings from the Keyboard | |
| |
| |
| |
Implementing Structures, Unions, and TypeDefs | |
| |
| |
Working with Simple Structures | |
| |
| |
Using Structures That are More Complex | |
| |
| |
Arrays of Structures | |
| |
| |
Initializing Structures | |
| |
| |
Structures and Pointers | |
| |
| |
Understanding Unions | |
| |
| |
Creating Synonyms for Structures with typedef | |
| |
| |
| |
Understanding Variable Scope | |
| |
| |
What Is Scope? Creating External Variables | |
| |
| |
Creating Local Variables | |
| |
| |
Local Variables and the main() Function | |
| |
| |
Which Storage Class Should You Use? Local Variables and Blocks | |
| |
| |
| |
Secret Messages | |
| |
| |
| |
Advanced Program Control | |
| |
| |
Ending Loops Early | |
| |
| |
The goto Statement | |
| |
| |
Infinite Loops | |
| |
| |
The switch Statement | |
| |
| |
Exiting the Program | |
| |
| |
Executing Operating System Commands in a Program | |
| |
| |
| |
Working with the Screen, Printer, and Keyboard | |
| |
| |
Streams and C | |
| |
| |
Using C's Stream Functions | |
| |
| |
Accepting Keyboard Input | |
| |
| |
Controlling Output to the Screen | |
| |
| |
Redirecting Input and Output | |
| |
| |
When to Use fprintf() | |
| |
| |
Week 2 In Review | |
| |
| |
| |
At a Glance | |
| |
| |
Where You're Going | |
| |
| |
| |
Pointers: Beyond the Basics | |
| |
| |
Declaring Pointers to Pointers | |
| |
| |
Pointers and Multidimensional Arrays | |
| |
| |
Working with Arrays of Pointers | |
| |
| |
Working with Pointers to Functions | |
| |
| |
Bonus Section: Understanding Linked Lists | |
| |
| |
| |
Using Disk Files | |
| |
| |
Relating Streams to Disk Files | |
| |
| |
Understanding the Types of Disk Files | |
| |
| |
Using Filenames | |
| |
| |
Opening a File | |
| |
| |
Writing and Reading File Data | |
| |
| |
File Buffering: Closing and Flushing Files | |
| |
| |
Understanding Sequential Versus Random File Access | |
| |
| |
Detecting the End of a File | |
| |
| |
File Management Functions | |
| |
| |
Using Temporary Files.Type & Run 5 | |
| |
| |
Counting Characters | |
| |
| |
| |
Manipulating Strings | |
| |
| |
Determining String Length | |
| |
| |
Copying Strings | |
| |
| |
Concatenating | |