What's Next

By now, you should have a good idea about what happens behind the scenes in C++. You are slightly at the mercy of the system until you appreciate what C++ does for you silently and why it is sometimes wrongheaded. One good way to get a feeling for what C++ does is to single-step through you first C++ programs with a debugger, looking at all the functions you went through. It's a good idea to play with C++ to learn more about it, and UnderC makes that less painful. You can learn a lot by tracing all function calls. In UnderC, you do this as follows, by using the #opt command to switch on t (for trace) and v (for verbose):

;> #opt t+ v+
;> s
						=
						"hello"; *sig: void operator=(char*) *match: string& operator=(char*) *TRACE <temp> *TRACE ...

Get C++ By Example: UnderC Learning Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.