Wrox Programmer Forums
|
BOOK: Ivor Horton's Beginning Visual C++ 2010
This is the forum to discuss the Wrox book Ivor Horton's Beginning Visual C++ 2010 by Ivor Horton; ISBN: 9780470500880
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Ivor Horton's Beginning Visual C++ 2010 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 June 25th, 2012, 04:59 PM
Authorized User
 
Join Date: May 2012
Posts: 66
Thanks: 0
Thanked 4 Times in 4 Posts
Default error in code for Ex3_14

The line of code in the book immediately before the line containing the comment "Underline each heading" contains an error. The code in the book is
Code:
for(i = 0; i <= size; i++)
This causes the column headings to be 0-12 instead of 1-12. The program outputs the correct multiplication facts; however, they are displayed under columns 0-11. Column 12 is blank.

The correct code should be
Code:
for(i =1; i <= size; i++)
respectfully submitted.
drpepper

well phooey... I had the wrong line of code. The error was mine. I had typed the incorrect code in the line for outputting column headings. My apologies. (I found no way to delete the post.)

Last edited by drpepper; June 25th, 2012 at 05:32 PM.. Reason: error





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in code nightfox BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 1 January 28th, 2010 04:10 AM
error with code Mohsin116 Java Basics 1 May 14th, 2006 07:40 AM
error in code bukky Classic ASP Databases 2 March 5th, 2004 07:10 PM
error in code bukky Classic ASP Databases 2 March 5th, 2004 11:29 AM
Error displayed with error trap code stoneman Access 4 February 28th, 2004 02:53 PM





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