std::vector<std::string>menuOptions={"List the records in the file.","Enter new records into the file.","Change a particular record.","Delete a particular record."};
while(true){
intselection=simpleMenu(menuOptions,"What would you like to do?");
switch(selection){
case0:
std::cout<<displayData(data);
std::cout<<"Press Enter to Continue";
std::cin.ignore();
break;
case1:
data.emplace_back(enterRecord());
std::cout<<displayData(data);
updateData(data);
std::cout<<"New data added.\nPress Enter to Continue";
std::cin.ignore();
break;
case2:
changeEntry(data);
std::cout<<"Data modified.\nPress Enter to Continue";