S
shoa
Hello
I have a vector of client objects. Each client has some fields: name (first
and last names), address, phone number....
I need to have a functions to search clients so that an user can select
fields to search. For example an user can select search first name and phone
number, he can enter value to these fields to search. Other users may want
to search address and last name.... and so on.
It can be seen that I can use if... else clause to search. however this
method is not good if a client has many fields need to search (age,
sex....).
If you have a better solution, please help
Many thanks
S.Hoa
I have a vector of client objects. Each client has some fields: name (first
and last names), address, phone number....
I need to have a functions to search clients so that an user can select
fields to search. For example an user can select search first name and phone
number, he can enter value to these fields to search. Other users may want
to search address and last name.... and so on.
It can be seen that I can use if... else clause to search. however this
method is not good if a client has many fields need to search (age,
sex....).
If you have a better solution, please help
Many thanks
S.Hoa