Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#include <string>
#include <vector>
std::string randomname();
std::vector<std::string> namelist = {
"Virgen Terrell",
"Irene Etchison",
"Tommie Nish",
"Marhta Guglielmo",
"Tomoko Hodak",
"Buena Canova",
"Maragret Oconnell",
"Silva Anstett",
"Lance Koonce",
"Alia Rosel",
"Joesph Weideman",
"Judy Washer",
"Benjamin Rose",
"Sabine Brant",
"Terri Scurlock",
"Shenita Astudillo",
"Sherwood Madill",
"Harriette Niemeyer",
"Maxima Zulauf",
"Marylee Ramthun",
};
class customer
{
private:
std::string name ;
std::string order ;
public:
int createcustomer(){
name = randomname();
// order =
return 0;
}
};
std::string randomname(){
int i ;
i = rand();
std::string name = namelist[i];
return name;
}