Tu 3:30-4:30, Th 11:00-12:00 (in PIC lab, MS 2000)
PIC home page
Examples, exercises, &c:
: hello_0.cpp is an annotated hello world program. The remaining files are variations, some of which contain errors. As an exercise, try fixing them.
: binary.cpp is a program for converting between base 10 and base 2; precision.cpp plays with floating point representations of numbers.
: an example of how to use colours in the console output on Windows.
: some sample code involving if statements and string manipulation.
: some sample code about manipulating input and output using setw and alignments.
: sample problems to work through in the lab.
: sample code involving loops and stringstreams.
: some sample things using the
: sample code with function calls and random.
: labwork problems.
: midterm stuff.
: vector lab problems.
: STL and algorithm examples.
: last lab problems.
Assorted further reading, exercise, &c:
As an exercise, try writing a program which prints its own source code precisely.
The halting problem
Some bitmap code