[ 10.html ]
[ sort3.cpp ]
beomes
[ sort3c.cpp ]
Old fashioned but effective for simple problems. Not so good for complex
software which has many different purposes.
[ intname.cpp ]
Tracing.
Pretend to be the computer.
DO IT.
A very useful texhnique that lets you grow code organically.
This is found in
#include <cassert>
and it is called like this
assert(condition);
I believe assert to be a vital tool for developing software.
We will use it in labs.
Why programming some programs takes a lot of care and attention to detail.
Cool.
This enable
TDD
or
Test Driven Development
where you write the tests first and then make the code satisfy the tests.
Demo in class....
[ tdd1.cpp ]
[ tdd2.cpp ]
if time.
You should try this in your projects.
Some people find this helpful. I don't.