Code:
// Pile.h
#ifndef PILE_H
#define PILE_H
 
#include <list>
 
class Pile
{
public:
	void addCard(const Card&card); //Adds a card to the Pile
	void dump() const;
private:
	std::list<Card> cards; // Adds a card to the Pile
};
#endif
Or you could do this (not recommended, but "easier"):
Code:
// Pile.h
#ifndef PILE_H
#define PILE_H
 
#include <list>
using std::list;
 
class Pile
{
public:
	void addCard(const Card&card); //Adds a card to the Pile
	void dump() const;
private:
	list<Card> cards; // Adds a card to the Pile
};
#endif
Or this (not recommended, but "easiest"):
Code:
// Pile.h
#ifndef PILE_H
#define PILE_H
 
#include <list>
using namespace std;
 
class Pile
{
public:
	void addCard(const Card&card); //Adds a card to the Pile
	void dump() const;
private:
	list<Card> cards; // Adds a card to the Pile
};
#endif