Problem in listing inputs..

Here is the code I did using link list. I can add Manager but could not List Manager. Can anybody help to fix this problem ?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
cout << "1)Add Manager" <<endl;
            cout << "2)List Manager"<<endl;
            cout << "3)Delete Manager" <<endl;
            cout << "4)Assign Vehicle" <<endl;
            cout << "5)Retract Vehicle"<<endl;
            cout << "6)Swap Vehicles"  <<endl;

            cout << "Choice:";
            cin  >> Option2;

            if(Option2 == 1)
            {
                system("CLS");

                string Temp;

                cin.ignore();

                cout << "What is the manager's name?" <<endl;
                getline(cin,Temp);

                Managers.pushBack(new Manager(Temp));
            }
            else if(Option2 == 2)
            {
                system("CLS");

                for(int i = 0;i < Managers.Length();i++)
                {
                    cout << (i+1) << "]";

                    Manager Temp;

                    Temp = Managers.retrieve(i);

                    Temp.Display();

                    cout << endl;
                }

                system("PAUSE");
            }
We cannot tell based on that amount of information.
But the full code in about more than 1000 lines.. should i post it here?
Topic archived. No new replies allowed.