Hey everyone, I am having some difficulties knowing how to assign city to the list. Can anyone help? Thanks!
Code:class DestinationList
{
private:
int num; // number of objects in the list
Destination list[MAX_CITIES]; // array of destinations
public:
int Add(string city)
{
num = 0;
list[num] = city;
num++;
}
};