Код: Выделить всё
#include
#include
#include
#include
using namespace std;
vector populateVector();
void populateArray(string *, int &);
void menu();
int main()
{
vector collegesVector = populateVector();
int sizeOfArray = collegesVector.size();
string statesArray [sizeOfArray] = {};
populateArray(statesArray, sizeOfArray);
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/35874921/variable-sized-object-array-may-not-be-initialized[/url]
Мобильная версия