I am new to c++, and I am going to implement a program, which takes a bunch of data, stored in a comma separated vector file, and classified them. That is to say, it contains specification of employee that are employed in a company, and by using this program, user will have ability to promote or set salary of each of them. Now, I've confronted a problem. I want to define subscript operator, but I don't know how I could design it, since the program I designed asks the user to enter last name, then it will search for the entered name and do some kind of predefined operations. Should I use iterator header file or there is some other ways? I would wholeheartedly appreciate those who have some kind of relevant experience and share them with me.
Thanks.