First page Back Continue Last page Graphics
Using num_strings
Keeps track of any initializations of objects from class StringBad. (++ in constructor, -- in destructor)
Practice: vegnews.cpp in prata
Problems:
- callme1(StringBad &); // pass by ref (works)
- callme2(StringBad); // pass by value (doesn't!!)
This is running into more constructors than we explicitly defined.