using tne enum ??

class Place
{
public:
enum Type {
PLACE_CONCERT_HALL = 1,
PLACE_THEATRE = 2,
PLACE_PUB = 3,
PLACE_STADIUM = 4
};

private:
string placeName;
int maxSeats;
string address;
Place::Type type;

public:
Place(string name, Place::Type type, int seats, string address);
~Place();
void setAddress(string newAddress);

int getMaxSeats();
string getPlaceName();

friend ostream& operator<<(ostream& out, const Place &place);
};

ostream& operator<<(ostream& out, const Place &place);



in my homework ı have write implemetation of this class but ı dont know how to use enum , place::Type type or such thing somebody can explain breifly
Last edited on
I think you should delete Place:: when declaring type
Topic archived. No new replies allowed.