need help asap plz

Mar 8, 2013 at 2:44am
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 Mar 8, 2013 at 2:44am
Mar 8, 2013 at 2:44am
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


Mar 8, 2013 at 2:44am
this is what i have so far what should i do now plz help
Topic archived. No new replies allowed.