ah ok thanks alot just wondered if there was a more efficient way of doing that
Type: Posts; User: TomButcher
ah ok thanks alot just wondered if there was a more efficient way of doing that
deck = {Cards(2,"2h"),Cards(3,"3h")};
This line is throwing up the errors.
class Cards
{
private: char name_of_card [5];
i'm creating an array of a class object. The class in question has default values and takes two arguments, an in and a char array.
class Deck
{
private:
Cards deck[2];
public:
Deck();...
thanks guys spot on i hadn't defined the destructor, I'm new to c++ programming having emigrated from java :D :o
when compiling my code (it's nothing complicated its just console visua c++)
anyway it comes up with this
Linking...
poker.obj : error LNK2019: unresolved external symbol "public: __thiscall...
how does char * differ ?
Does it mean a pointer to the array i'm slightly confused
class Cards
{
private:
char name_of_card [5];
int value;
public:
Cards(int v, char c []);
~Cards();
char [] get_name();
int get_value();