Wrox Programmer Forums
|
BOOK: Ivor Horton's Beginning Visual C++ 2008 ISBN: 978-0-470-22590-5
This is the forum to discuss the Wrox book Ivor Horton's Beginning Visual C++ 2008 by Ivor Horton; ISBN: 9780470225905
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Ivor Horton's Beginning Visual C++ 2008 ISBN: 978-0-470-22590-5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 18th, 2009, 05:26 PM
Registered User
 
Join Date: Sep 2009
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
Default Exercises 7.5 & 7.6 use concepts that haven't been introduced

Exercise 7.5 & 7.6 are worded thus:

Quote:
5. Write a class called CTrace that you can use to show you at run time when code blocks have been entered and exited, by producing output like this:

Code:
function ‘f1’ entry
‘if’ block entry
‘if’ block exit
function ‘f1’ exit
6. Can you think of a way to automatically control the indentation in the last exercise, so that the output looks like this?

Code:
function ‘f1’ entry
    ‘if’ block entry
    ‘if’ block exit
function ‘f1’ exit
Having had plenty of experience with C++/C#, my first instinct would be to use destructors. However, destructors aren't covered in the book until Chapter 8. To satisfy my curiosity, I checked the solutions in the companion code for the book, and it indeed uses destructors.
The Following User Says Thank You to cogwheel For This Useful Post:
fortran_ii (February 7th, 2010)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Blog for QTP for certification help and concepts expertqtp VBScript 0 July 10th, 2008 01:17 AM
Basic concepts with asp.net cool_hari BOOK: Beginning ASP.NET 1.0 1 August 28th, 2006 03:41 AM
c++ concepts kerby C++ Programming 3 April 16th, 2005 11:39 PM
Need to Understand Big Picture Concepts newbieprogrammer Classic ASP Databases 3 February 6th, 2005 04:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.