value class

i figure it out
Last edited on

#include <string>
#include <iostream>
#include <vector>
#include <cstdlib>
#include <ctime>

using namespace std;


class Cards
{
private:
string face;
string suit;
int value;

public:
void setFace(string f);
void setSuit(string s);
string getSuit() const { return suit; }
string getFace() const { return face; }
int getValue();
};

void Cards::setFace(string f)
{
face = f;
}

void Cards::setSuit(string s)
{
suit = s;
}

class StandardDeck
{

private:
vector<Cards> deck;

public:
void make();
void show();
int getRandomCard();

};

void StandardDeck::make()
{

}

int StandardDeck::getRandomCard()
{

}

int main()
{


return 0;
}
this is what i have so far
closed account (1vD3vCM9)
You know it would be less cancer for our eyes If you used the code brackets , right?
Also why do you set the title on CAPS?
Besides that, people will help you, but homework is YOUR job, you shouldn't be programming C++ if you can't do homework and listen in class/course
Last edited on
Topic archived. No new replies allowed.