In this example, from Chapter 3: A Taste of C++, the student (along with the crew of a fictional space ship) learn about forming math expressions using math operators. The screen capture above is from an interactive exercise in which the student constructs an expression tree by clicking on operators in the correct order of precedence.

If you'd like to try out this example, download a program which you can execute under Windows (3.1, 95 or NT). Back on your PC, from your Windows Run box: run mathzip to unarchive the files it contains, then run mathexpr to start it up.
(The zip file is about 1.7MB.)

You can also view this snippet on the web. It comes in three flavors: HTML, slow and fast. The HTML version has limited interactivity and no sound, but it doesn't need a plug-in. The medium and fast version use the Authorware Shockwave Player plug-in. If you've already downloaded and installed that, you're all set. If not you will need to download and install the Authorware Shockwave Player plug-in. Once you've done so, you may need to restart your browser or even reboot your machine. (Sorry, it depends on how your machine and browser are set up!) Once you've done so, you'll be able to run this and other material that have been installed on this web site. Note: The Shockwave player needed for this multimedia is not the Director or Flash Shockwave plug-in that is now pre-installed in some browsers but rather the Authorware Shockwave Player. Click on the button to download the Authorware Shockwave player.

Get Authorware Shockwave

The Shockwave code for this chapter comes in two flavors, for fast and slow connections. The fast version, recommended for Ethernet connections, preserves most of the quality of the original material (except for the video, from which a few frames have been selected), while the slow version gives up some quality in graphics, etc., to facilitate transmission via dial-in modem.

fast
slow
HTML

Return to multimedia examples
Return to home page for The Universal Machine