NEED HELP PLEASE

Need help with removeName and findName in my program







#include<iostream>
#include<vector>
#include<cstdlib>
#include<string>

using namespace std;

void getLists(vector<string>&);
void sortNames(vector<string>&);
void displayLists(vector<string>);

// This while allows entry until ‘quit’ is entered
int main(){
vector<string> name;
getLists(name);
displayLists(name);
string tmp;
system("pause");
return EXIT_SUCCESS;

}

void getLists(vector<string>& names){
while (true) {
string tmp;
cout << "Enter a name (quit to stop): ";
cin >> tmp;
if (tmp == "quit") break;
names.push_back(tmp);
}
}
void displayLists(vector<string>names) {
for(int i = 0; i < names.size(); i++) {
cout << names[i] << endl;
}
sortNames()
}
Please, do not double post. It clutters forums and spreads attempts to help you. Another thread: http://www.cplusplus.com/forum/general/146719/
Topic archived. No new replies allowed.