Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Beginning iOS Game Development
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 16th, 2012, 10:51 AM
Registered User
Points: 26, Level: 1
Points: 26, Level: 1 Points: 26, Level: 1 Points: 26, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Location: Thailand
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default Chapter 3: Acey Deucy problem

When I run the Acey Deucy game (end of Chapter 3), it works ok except for the following section:
Code:
    // The game is over
    printf("The game is over. Your final score is %i\n", bank);
    
    return 0;
As soon as the game ends (whether I win or lose), the console window exits immediately without any message appearing. Why?
Reply With Quote
  #2 (permalink)  
Old May 16th, 2012, 11:05 AM
Friend of Wrox
Points: 1,671, Level: 16
Points: 1,671, Level: 16 Points: 1,671, Level: 16 Points: 1,671, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2010
Posts: 298
Thanks: 1
Thanked 62 Times in 60 Posts
Default

Reopen the console at the conclusion of the game. You should see the print out of the final score at the end of the log.

Bob
Reply With Quote
The Following User Says Thank You to thepianoguy For This Useful Post:
thunderous (May 16th, 2012)
  #3 (permalink)  
Old May 16th, 2012, 11:44 AM
Registered User
Points: 26, Level: 1
Points: 26, Level: 1 Points: 26, Level: 1 Points: 26, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Location: Thailand
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

yes I see the score if I do that - thanks
Reply With Quote
Reply


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with chapter 1 Boboneil BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 0 September 3rd, 2010 06:23 PM
Problem in chapter 1 chrispynegar BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 0 May 6th, 2009 06:37 AM
Problem with Chapter 1 example dakaratekid BOOK: Expert SQL Server 2005 Integration Services ISBN: 978-0-470-13411-5 4 August 16th, 2007 11:29 PM



All times are GMT -4. The time now is 03:36 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.