    01: #include <iostream>
    02: #include <vector>
    03:
    04: using namespace std;
    05:
    06: int main()
    07: {
    08:    vector<double> salaries;
    09:    bool more = true;
    10:    while (more)
    11:    {
    12:       double s;
    13:       cout << "Please enter a salary, 0 to quit: ";
    14:       cin >> s;
    15:       if (s == 0)
    16:          more = false;
    17:       else
    18:          salaries.push_back(s);
    19:    }
    20:
    21:    double highest = salaries[0];
    22:    int i;
    23:    for (i = 1; i < salaries.size(); i++)
    24:       if (salaries[i] > highest)
    25:          highest = salaries[i];
    26:
    27:    for (i = 0; i < salaries.size(); i++)
    28:    {
    29:       if (salaries[i] == highest)
    30:          cout << "highest value => ";
    31:       cout << salaries[i] << "\n";
    32:    }
    33:
    34:    return 0;
    35: }