Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void findCustomer(vector<Customer> &theCust)
- {
- if(theCust.empty())
- cout<<"---No Customer---"<<endl;
- else
- {
- cout<<"Enter customer name : "<<flush;
- string custName;
- cin>>custName;
- bool find = false;
- vector<Customer>::iterator iter;
- for(iter = theCust.begin(); iter != theCust.end(); iter++)
- {
- if(iter->getName() == custName)
- {
- iter->display();
- find = true;
- }
- }
- if(find == false)
- cout<<"No Customer"<<endl;
- //theCust.erase(iter);
- //else
- //cout<<"No match found"<<endl;*/
- /*iter = find(theCustomer.begin(),theCustomer.end(), inCustomer);
- if (iter != theCustomer.end())
- {
- theCustomer.erase(inCustomer);*/
- }
- }
Add Comment
Please, Sign In to add comment