// // // #include using namespace std; const int MAX = 50; class List { int length; string id[MAX]; int t1[MAX], t2[MAX]; float avg[MAX]; public: List() { length = 0; } void InsertItem(string item_i, int T1, int T2) { id[length] = item_i; t1[length] = T1; t2[length] = T2; avg[length] = (T1 + T2 )/2.0; length ++; } void Print() const { for(int i=0; i> sid >> n1 >> n2; while(cin) { z.InsertItem(sid, n1, n2); cin >> sid >> n1 >> n2; } z.Print(); cout << "\n\nDone.\n\n"; return 0; }