Say I get user input. If what they type in is not already in the array(how do I check an array?), add it to the array.
And vice versa how do I remove something from an array given the user input.
Example:
string teams[] = {"St. Louis,","Dallas","Chicago,","Atlanta,"};
cout <<"What is the name of the city you want to add?" << endl;
cin >> add_city;
cout <<"What is the name of the city you want to remove?" << endl;
cin >> remove_city;
Using an array, you could treat empty array cells with a char* such as “EMPTY”. To find an item you search through the array , and find to “replace” or add it.
As for removing a cell:
Printing the array while skipping the ’empty’ cells
//Printing the array
But i do agree using a vector would be a much more efficient approach, this is simply a creative approach to get your mind thinking.