How to save and print elements in vectors?
Posted on 2003-11-19
I really need your help in this project..I'm running out of time..
I have a program which has these classes: Manager, Employee, Complaint, ManagerUI, EmployeeUI and HelpDeskUI..
When first run the program, A HelpDeskUI will appear to the user. the user will have to choose his position.. either (manager) or (employee)..
If I click on theEmployee button, An EmployeeUI will appear..In this window I have to enter: my name, my ID, problem type (whether Software or hardware problem) and I will have some space in which I can specify the details of my problem..when I finish I have to click on (submit) button..once I do that all the fields must be cleared and I can enter another problem..
If I finish submitting my complaints, I will have to close the window..and I must be able to see the HelpDeskUI again..so when another user click on the Employee button, he will be able to record his problem (note that all the different complaints must be stored in an array)
Now when the manager use the program..he will click on the Manager Employee and will be able to see his window..In his he has two lists..one that have complaints arranged by their unique number..and the other list shows the name of four technicians..the manager must be able to assign each complaint to a technician..so when the manager choose say (Complaint 1) and choose ("Bill") from the technicians list, he will click on the (Show Complaints) buttons to be able to see ALL the complaints that have been recorded..like this [in a textArea Field]:
Complaint no. Employee id complaint type assigned technician status Date
1 567 software Bill pending
2 785 hardware Ed fixed
3 324 hardware
The manager will be able to select a complaint to change its status or to show the details recorded by employees..
Sorry if the question is too long..but I really need a fast clear help..
My first question is about vectors..In the complaint class I will have to create a vector which will have all the information about a complaint..but how will I be able to print all the information in the textArea field when the manager will click on the button..Is there a loop and if yes where? Also how will all the complaints be saved in a vector?