Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Mac > BOOK: Beginning Mac OS X Programming
|
BOOK: Beginning Mac OS X Programming
This is the forum to discuss the Wrox book Beginning Mac OS X Programming by Michael Trent, Drew McCormack; ISBN: 9780764573996
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Mac OS X Programming 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 August 15th, 2012, 12:48 PM
Registered User
 
Join Date: Aug 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 3 - Modeling a deck of cards

I just started reading and found this book helpful. As I ran the chapter 3 above file Cards under modeling a deck of cards, the item failed. It turns out the last printf statement should read as follows:

printf("The first card is %s of %s \n", deck[0].name, deck[0].suit);

Change the .value to .name. Otherwise, you can leave as it but change the string from %s to %i.





Similar Threads
Thread Thread Starter Forum Replies Last Post
[Modeling a Deck of Cards] question Almakos BOOK: Beginning iOS Game Development 2 May 3rd, 2012 01:44 AM
Chapter 3, pg 68 - Shuffling the Deck of Cards maconspace BOOK: Beginning iOS Game Development 11 March 11th, 2012 08:28 AM
Many-to-many dimensional modeling boson SQL Server 2000 6 September 22nd, 2006 12:34 PM





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