A
alexkcha
I was wondering if anyone can help me with this problem.
#include <iostream>
#include <stdlib.h>
I am having problems compiling the following code. Can someone explain
what is wrong with the constructor?
#include <stdio.h>
#include <string>
using namespace std;
class deckOfCards{
public:
deckOfCards();
private:
char* suit[4][8];
char* face[13][8];
};
deckOfCards::deckOfCards()
{
suit[4][8] = {"Diamonds", "Hearts", "Clubs", "Spades"};
char *face[13][8] = {"Ace", "One", "Two", "Three", "Four", "Five",
"Six", "Seven", "Eight", "Nine", "Jack", "Queen", "King"};
}
#include <iostream>
#include <stdlib.h>
I am having problems compiling the following code. Can someone explain
what is wrong with the constructor?
#include <stdio.h>
#include <string>
using namespace std;
class deckOfCards{
public:
deckOfCards();
private:
char* suit[4][8];
char* face[13][8];
};
deckOfCards::deckOfCards()
{
suit[4][8] = {"Diamonds", "Hearts", "Clubs", "Spades"};
char *face[13][8] = {"Ace", "One", "Two", "Three", "Four", "Five",
"Six", "Seven", "Eight", "Nine", "Jack", "Queen", "King"};
}