Wrox Programmer Forums
|
BOOK: Beginning iOS Game Development
This is the forum to discuss the Wrox book Beginning iOS Game Development by Patrick Alessi ; ISBN: 978-1-1181-0732-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning iOS Game Development 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 January 12th, 2012, 09:46 PM
Registered User
 
Join Date: Jan 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Tracking errata

Chapter 3 - Modeling a Deck of Cards

section 2 code

printf(“The first card is %s of %s\n”, deck[0].value, deck[0].suit);
becomes
printf(“The first card is %s of %s\n”, deck[0].name, deck[0].suit);
 
Old January 12th, 2012, 09:52 PM
Registered User
 
Join Date: Jan 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Chapter 3 - Printing the Deck of Cards by Using a for Loop

section 1
Code:
for (int i=0; i<52; i++) {
    printf(“The card is %s of %s\n”, deck[i].value, deck[i].suit);
}
should be

Code:
for (int i=0; i<52; i++) {
    printf(“The card is %s of %s\n”, deck[i].name, deck[i].suit);
}
 
Old January 12th, 2012, 09:56 PM
Registered User
 
Join Date: Jan 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 3 card errors

Just thought it was a single mistake but it's all through the card examples and discussions in Chapter 3.

Code:
deck[i].value
is actually

Code:
deck[i].name
 
Old January 21st, 2012, 01:18 PM
Registered User
 
Join Date: Jan 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Page 187 & 188

Code:
// Set the fill color to green
should be
Code:
// Set the fill color to orange
It's just a comment but still...





Similar Threads
Thread Thread Starter Forum Replies Last Post
Tracking My mileage rkellogg VB How-To 2 September 6th, 2006 11:19 PM
Tracking who is changing what? rrhandle SQL Server 2000 1 August 15th, 2006 03:03 AM
Tracking Users arimakidd Classic ASP Professional 0 August 17th, 2005 05:35 PM
UPS Tracking jafarsalam XML 0 October 20th, 2004 04:23 PM
SESSION tracking natmaster Beginning PHP 1 August 18th, 2003 01:52 PM





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