Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .

Lesson One Getting Started
Before We Get Started
How to Learn to Program
What You Need
A Close Look at Hello World
Escape Sequences
Reserved Words
Case Sensitivity
How Programs Execute
Graphics Programs
Solution to problem 1.1
Solution to problem 1.2
Solution to problem 1.3
Solution to problem 1.4
Solution to problem 1.5
Solution to problem 1.6
Lesson Two Variables and Loops
Integer Variables
The For Loop
Indenting: Programmers Do It With Style
Operator Precedence
The Maximum Integer
Integers Come in Several Sizes
Integers Can be Signed or Unsigned
More Conversion Specifications
Floating-Point Numbers
The Trace and Stop Commands
Exponents
Don't Panic!
Solution to problem 2.1
Solution to problem 2.2
Solution to problem 2.3
Solution to problem 2.4
Solution to problem 2.5
Solution to problem 2.6
Solution to problem 2.7
Lesson Three Input, Loops and Conditions
Input
Our First Game... er, Computer Aided Simulation
The Do-While Loop
How C Divides
Empty Parameter Lists
Nesting Loops
Random Numbers
The If Statement
The Else Clause
Those Darn Semicolons
Nesting If Statements
Solution to problem 3.1
Solution to problem 3.2
Solution to problem 3.3
Solution to problem 3.4
Solution to problem 3.5
Solution to problem 3.6
Solution to problem 3.7
Solution to problem 3.8
Solution to problem 3.9
Solution to problem 3.10
Lesson Four Functions
Subroutines Avoid Repetition
The Structure of a Function
Local Variables
How Functions are Executed
Functions Let You Create New Commands
Functions Can Return a Value
A First Look at Pointers
Some Archaic Features of C
Solution to problem 4.1
Solution to problem 4.2
Solution to problem 4.3
Lesson Five Arrays and Strings
Groups of Numbers as Arrays
Be Careful With Arrays!
Why Programmers are Humble – At Least, in Private!
Strings are Arrays
Characters and Integers are Related
Character Constants and String Constants
Another Look at strlen
Copying Strings with strcpy and strncpy
Putting Strings Together with strcat and strncat
Comparing Strings with strcmp and strncmp
Passing Strings as Parameters
Returning Strings as Function Results
The string.h and ctype.h Libraries
Solution to problem 5.1
Solution to problem 5.2
Solution to problem 5.3
Solution to problem 5.4
Solution to problem 5.5
Solution to problem 5.6
Solution to problem 5.7
Solution to problem 5.8
The Shell Sort
Boolean Values
Arrays of Arrays
Trigonometry Functions
Converting Types
Rotation
Solution to problem 6.1
Solution to problem 6.2
Solution to problem 6.3
Solution to problem 6.4
Solution to problem 6.5
Solution to problem 6.6
Solution to problem 6.8
Solution to problem 6.9
Defining Types
Enumerations
Structures Store More than One Type
Defining Variables Right Away with struct and enum
Using typedef with struct and enum
The switch Statement
Solution to problem 7.1
Solution to problem 7.2
Solution to problem 7.5
Solution to problem 7.6
Lesson Eight Pointers and Lists
What is a Pointer?
Pointers are Variables, Too!
Allocating and Deallocating Memory
Stacks
Queues
Running Out Of Memory
The & Operator Returns an Address
The Special Relationship Between Pointers and Arrays
Pointer Math
Solution to problem 8.1
Solution to problem 8.2
Solution to problem 8.3
Solution to problem 8.4
Solution to problem 8.5
Solution to problem 8.6
Solution to problem 8.7
Solution to problem 8.8
The Nature of Files in C
What is a File?
The Four Basic Operations
File Variables
Writing to a File
File Names
Directories, Path Names and Folders
Reading Text Files One Line at a Time
Bullet-proof Input
Binary Files
Random Access
Solution to problem 9.1
Solution to problem 9.2
Solution to problem 9.3
Solution to problem 9.4
Solution to problem 9.5
Solution to problem 9.6
Solution to problem 9.8
Solution to problem 9.9
Lesson Ten Miscellaneous Useful Stuff
A Look at this Lesson
Number Bases
The Bitwise And Operation
The Bitwise Or Operator
The Bitwise Exclusive Or Operator
The Bitwise Negation Operator
The goto Statement
The break Statement
The break Statement in Nested Loops
To goto or Not to goto
The continue Statement
Solution to problem 10.1
Solution to problem 10.2
Solution to problem 10.3
Solution to problem 10.4
Solution to problem 10.5
Solution to problem 10.6
Solution to problem 10.7
Solution to problem 10.8
Solution to problem 10.9
Solution to problem 10.10
Solution to problem 10.11
Solution to problem 10.12
Solution to problem 10.13
Lesson Eleven More Miscellaneous Useful Stuff
Unions
Separate Compilation
Storage Classes
Initializers
Solution to problem 11.1
Solution to problem 11.2
Solution to problem 11.3
Solution to problem 11.4
Solution to problem 11.5
Lesson Twelve Stand-Alone Programs
What is a Stand-Alone Program?
Using StartGraph and EndGraph
Desktop Programs
Mixing Text and Graphics
Stand-Alone Text Programs
Solution to problem 12.1
Solution to problem 12.2
Solution to problem 12.3
Lesson Thirteen Scanning Text
The Course of the Course
Manipulating Text
Building a Simple Scanner
Symbol Tables
Parsing
Solution to problem 13.2
Solution to problem 13.3
Lesson Fourteen Recursion
A Quick Look at Recursion
How Functions Call Themselves
Recursion is a Way of Thinking
A Practical Application of Recursion
Solution to problem 14.1
Solution to problem 14.2
Quick Sort
How Fast Are They?
Quick Sort Can Fail!
Sorting Summary
Solution to problem 15.1
Solution to problem 15.2
Solution to problem 15.3
Solution to problem 15.4
Solution to problem 15.5
Solution to problem 15.6
Lesson Sixteen Searches and Trees
Storing and Accessing Information
Sequential Searches
The Binary Search
A Cross Reference Program for C
The Binary Tree
Solution to problem 16.1
Solution to problem 16.2
Solution to problem 16.3
Solution to problem 16.4
Lesson Seventeen A Project: Developing a Break-Out Game
Designing a Program
The User: That's Who We Write For
Laying the Groundwork
Bottom-Up Design Verses Top-Down Design
Starting the Program
Drawing the Bricks
Drawing the Score and Balls
Bouncing the Ball
The Bricks
Labarski's Rule of Cybernetic Entomology
Filling in the Last Stubs
Tidy Up
Ruffles and Flourishes
0 of .
Results for:
P. 1
learnc

# learnc

Ratings: (0)|Views: 84|Likes:

### Availability:

See more
See less

05/25/2012

pdf

text

original

Pages 9 to 148 are not shown in this preview.
Pages 157 to 182 are not shown in this preview.