p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > C# and C > C++ and Visual C++ > BOOK: Ivor Horton's Beginning Visual C++ 2008 ISBN: 978-0-470-22590-5
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 18th, 2009, 06:26 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Blog for QTP for certification help and concepts expertqtp VBScript 0 July 10th, 2008 02:17 AM
About Xmail Concepts prasanna226284 BOOK: Wrox's Visual Basic 2005 Express Edition Starter Kit ISBN: 978-0-7645-9573-8 1 August 15th, 2007 05:38 AM
Basic concepts with asp.net cool_hari BOOK: Beginning ASP.NET 1.0 1 August 28th, 2006 04:41 AM
c++ concepts kerby C++ Programming 3 April 17th, 2005 12:39 AM
Need to Understand Big Picture Concepts newbieprogrammer Classic ASP Databases 3 February 6th, 2005 04:17 PM



All times are GMT -4. The time now is 06:29 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc