CS 2213/2211
Advanced Programming
Reference Materials
Lectures and Examples:
Many are adapted from those of Mike Maltrud. In each case there either already is or will be a link to these on the
"Calendar"
page.
Unix, etc.
Unix Basics
Very brief introduction to Unix
vi
Editor Cheat Sheet
Starts with the ultra-simplified "12 basic vi commands"
lint
and
make
Very brief introduction to make and lint
Random Numbers
Random Number Generators
Introduction to random numbers and their generation
Input/Output
Input/Output in C
Introduction to printf and scanf
Copy Programs
Simple programs to copy a file char-by-char from the standardinput to the standard output
Self-reproducing C programs
Just for fun.
Another Self-reproducing C program
More sophisticated but easier to understand
New Code in a Self-reproducing C program
Incorporating New Code Into a Self-reproducing C Program
Object-oriented Programming in C
Multiple File Compilation
Simple initial example of a C program spread across several files
Copy Programs
A program to copy input to output, in C, C++, and Java.
Object-oriented Programming in C
A file in C takes the place of a class in C++ or in Java.
Pointers in C
Pointers
An introduction to pointers
Swapping Programs
A sequence of programs that swap the values held in two locations
Comparisons of C, C++, and Java:
Overview of C, C++, and Java features
A program different in C and C++
Generic stack using a C++ template
Queue in Java
Circular, array-based queue in java, with command interpreter for testing
Side-by-side Comparisons: C, C++, and Java:
Dice program
C / Java: Side-by-side Comparison
Sieve program
C / Java: Side-by-side Comparison
Stack program
C / C++ / Java: Side-by-side Comparison
Stack program
in one file
C / C++ / Java: Side-by-side Comparison
Other C Language Resources:
C standard
-- (pdf) Official standard definition of C, hard to read.
C rationale
-- (pdf) Official rationale for the C standard, hard to read.
C rationale
-- (html) Official rationale for the C standard, hard to read.
C tutorial
-- (html) Simple C tutorial.
C tutorial
-- (html) Readable C tutorial. (howstuffworks.com)
C reference
-- (html) Fairly simple C reference.
C reference
-- (pdf) Complex C reference, IBM extensions (204 pages).
C reference
-- (pdf) Another sophisticated C reference (206 pages).
C standard libary
-- Almost the same as Appendix D of Weiss.
C standard libary
-- Plauger's very thorough library description.
Solutions
-- From the "White Book" K&R C language. description.
Copyright © 2011, Neal R. Wagner. Permission is granted to access, download, share, and distribute, as long as this notice remains.