need help asap plz

Write a void function named get_names that inputs names from the user and stores the names in a vector of strings. The vector of strings is passed as a reference parameter to the function. A sample output from the function follows (user input is bold):Enter names (q to quit):JohnJaneq
Last edited on
void get_names (string name)
{

cout << Enter names (q to quit): << endl;
cin >> name;

while (name != q)

{

cout << Enter names (q to quit): << endl;
cin >> name;

count =count +1


this is what i have so far what should i do now plz help
Topic archived. No new replies allowed.