K
kylemort
I am currently using a class (Card) to represent a card in a deck of
cards. The class has a constructor:
Card::Card(int num, int su)
{
suit = su;
number = num;
}
and I am trying to create multiple objects of that class (52 to be
exact). As I am learning C++ (already know Java, Visual Basic and C#)
I am not sure how to instantiate an object of that class. I am trying
to use
deck = gcnew Card(plcmnt, ((int)plcmnt / 13));
but I am running into problems. Any help is greatly appreciated
cards. The class has a constructor:
Card::Card(int num, int su)
{
suit = su;
number = num;
}
and I am trying to create multiple objects of that class (52 to be
exact). As I am learning C++ (already know Java, Visual Basic and C#)
I am not sure how to instantiate an object of that class. I am trying
to use
deck = gcnew Card(plcmnt, ((int)plcmnt / 13));
but I am running into problems. Any help is greatly appreciated