Wrox Programmer Forums
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 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 November 14th, 2017, 01:17 PM
Registered User
Join Date: Mar 2017
Posts: 3
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
 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

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 01:11 AM
Chapter 15:Changes to UIMap.Designer.cs David Lunn BOOK: Professional Application Lifecycle Management with Visual Studio 2010 1 June 21st, 2011 02: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 04: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 07:19 AM

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