how can i display loop character for a statement? the user input the name and computer looping it, and then it stop by a sentinel. the statement show all of the name that inputted by user.
example: NAME: gaby jessy alicia justin
how can i display loop character for a statement? the user input the name and computer looping it, and then it stop by a sentinel. the statement show all of the name that inputted by user.
example: NAME: gaby jessy alicia justin
 
    
    Here's some starting code:
#include <iostream>
#include <string>
#include <vector>  
int main()
{
  std::vector<std::string> database;
  std::string name;
  while (std::cin >> name)
  {
    database.push_back(name);
  }
  return 0;
}
The OP needs to add code after the names are read in.
Note: I didn't add the code because I do not have clear understand of the OP's requirements.
