playing-card/playing-card-to-string/Client.cs - A client of Card which applies formatting of cards. | Lecture 8 - slide 17 : 37 Program 3 |
using System; class CardClient{ public static void Main(){ Card c1 = new Card(CardSuite.Hearts, CardValue.Eight), c2 = new Card(CardSuite.Diamonds, CardValue.King); Console.WriteLine("c1 is a {0}", c1); Console.WriteLine("c1 is a {0:S}", c1); Console.WriteLine(); Console.WriteLine("c2 is a {0:S}", c2); Console.WriteLine("c2 is a {0:L}", c2); Console.WriteLine("c2 is a {0:V}", c2); } }