George O'Gorman
Member
- Joined
- Aug 10, 2020
- Messages
- 19
- Programming Experience
- 1-3
Hello. I'm trying to make something like a random card-draw generator Windows Form app .(Net Framework). I have all the code for one--which has enums--and I am trying to convert it. But I can't figure out how you create new enums. Thanks in advance!
C#:
namespace Exercise9
{
/// <summary>
/// An enumeration for card ranks
/// </summary>
public enum Rank
{
Ace,
Two,
Three,
Four,
Five,
Six,
Seven,
Eight,
Nine,
Ten,
Jack,
Queen,
King
}
}
namespace Exercise9
{
/// <summary>
/// An enumeration for card suits
/// </summary>
public enum Suit
{
Clubs,
Diamonds,
Hearts,
Spades
}
}
Last edited by a moderator: