Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning C# 6.0 Programming with Visual Studio 2015
This is the forum to discuss the Wrox book Beginning C# 6.0 Programming with Visual Studio 2015 by Benjamin Perkins, Jacob Vibe Hammer, Jon D. Reid; ISBN: 978-1-119-09668-9
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning C# 6.0 Programming with Visual Studio 2015 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 November 14th, 2017, 01:17 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 66%
Activity: 66% Activity: 66% Activity: 66%
 
Join Date: Mar 2017
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 10 CardLibrary.cs

Hello guys,

While copying the code for the Deck.cs I've come across two problems I'd like very much for someone to clarify on:

1. In the ctr of Deck the line of code
Code:
 cards[suitVal * 13 + rankVal -1] = new Card((Suit) suitVal , ((Rank) rankVal);
I did not fully comprehend its meaning.

2. What is/are the value(s) stored in cards?

Thanks a lot
Avri
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
Chapter 5: I needed to add code in HomeController.cs Glickt BOOK: Professional ASP.NET MVC 5 1 September 22nd, 2017 02:11 AM
Chapter 15:Changes to UIMap.Designer.cs David Lunn BOOK: Professional Application Lifecycle Management with Visual Studio 2010 1 June 21st, 2011 03:02 AM
Chapter 5 UserController.cs P.119-129 ralphbethke BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 34 February 19th, 2011 10:40 PM
Chapter 10, listing 10-10-app kiwibrit BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9 2 August 18th, 2009 05:21 AM
Chapter 7 Object reference error in master.cs mikeal_a BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 4 September 5th, 2008 08:19 AM



All times are GMT -4. The time now is 12:49 PM.


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