Hello the aim of this program is to initialize all elements of the vector Rooms to the string Empty, this is my first attempt at tackling vectors and passing by reference as such I'm not sure what is wrong.
#include <iostream>
#include <string>
#include <vector>
using namespace std;
void mainMenu(vector <int> &VectorRooms(), string &EmptyString);
int main()
{
vector < int > Rooms(13);
string str1 = "Empty";
mainMenu(Rooms, str1);
}
void mainMenu(vector <int> &VectorRooms(), string &EmptyStrings)
{
int i;
for (i = 0; i < VectorRooms.size(); i++)
{
VectorRooms[i] = EmptyStrings;
cout << VectorRooms[i] << endl;
}
}