14-07-2012, 04:10 PM
Practical C++ Programming Teacher's Guide
Practical C++.pdf (Size: 255.03 KB / Downloads: 201)
Introduction
This guide is designed to help with the classroom presentation of the material in Pracctical C++
Programming. It contains a set of teacher's notes for each chapter which give you information about
the key concepts covered in the chapter as well some ideas for in-class demonstration.
The live demonstration section alrets you to the live programs available for demonsration in class.
There is also a set of review questions for each chapter with answers. (The “Quiz” document contains
these questions without answers.)
Hopefully this guide will make your teaching of C++ a little easier.
Classroom Presentation Suggestions
There should be a style sheet for the class. This can be created by the class or supplied by the instructor.
It should include a list of what you as a teacher want for the heading comments of each assignment.
Suggestions include:
• The student’s name
• The assignment number
• Student ID number
• All the other stuff detailed in this chapter
Classroom Presentation Suggestions
Emphasis should be placed on the fact that for is merely a repackaging of the while loop. This is
illustrated by the figure on Slide 5.
If possible, show the programs on Slide 5 and Slide 6 live. Single step through them to show the students
what happened.
Many people believe that the default case of a switch statement must be the last statement. This is not
true, the default may be first, last, or anywhere.
Starting with Slide 12 we begin to teach some of the style rules used with switch statements. We first
present a code fragment that doesn’t follow the rules, followed by a corrected fragment. Emphasize that
these rules make your code clearer, easier to maintain and more reliable.