// main0.cpp #include "airtime0.h" void main() { airtime at1, at2, at3; cout << "Enter first airtime: "; cin >> at1; cout << "Enter second airtime: "; cin >> at2; at3 = at1 + at2; // overloaded + operator adds at2 to at1 cout << "sum = " << at3; // display sum if (at1 < at2) // overloaded < operator compares at1 and at2 cout << "\nfirst less than second\n"; else cout << "\nfirst not less than second\n"; at1 += at2; // overloaded += operator adds at2 to at1 cout << "at1+=at2, at1 = " << at1; // display result at3 = at1 += at2; // do it again, use return value cout << "\nat3 = at1 += at2, at3 = " << at3; // display result ++at1; // increment at1 cout << "\n++at1, at1 = " << at1; // display result at2 = ++at1; // increment again, and assign cout << "\nat2 = ++at1, at2 = " << at2; // display assigned value at1++; // increment at1 cout << "\nat1++, at1 = " << at1; // display result at2 = at1++; // increment again, and assign cout << "\nat2 = at1++, at2 = " << at2; // display assigned value cout << ", at1 = " << at1 << endl; at3 = - at3; // unary minus cout << "at3 = -at3, at3 = " << at3; // display assigned value at3 = at1 - at2; // subtraction operator cout << "\nat3 = at1 - at2, at3 = " << at3 << endl; }