Searching strings in class

Discussion in 'Programmer's Corner' started by Muqaddas Jamil*, Nov 8, 2009.

  1. Muqaddas Jamil*

    Thread Starter New Member

    Nov 1, 2009
    I have to define a class with name,employment date ,address and pay(hardcore it ).then have to make a user interface to search through a list of 20 employees using any particular property...(in c++)

    The problem i am facing is that i m not sure if i should use string arrays to hardcore the emplyee infos.,and how should i search them by taking any property (e.g a farhername 'John'is entered by user,i should display all emoloyees whose fathername is john.):confused:

    please give me some guidance;so that something might click in my mind.Any kinda help would be appreciated :)

    P.S I just have the basic knowledge of classes and havent studied any trees,stacks,files,sQL etc,etc....
    • 2 minutes ago
    • - 2 days left to answer.