#include #include #include "coffee.h" using namespace std; int main() { coffee c; //100mg by default cout << "c = " << c << "\n"; ++c; cout << "after ++c, c = " << c << "\n"; c += 50; cout << "after c += 50, c = " << c << "\n"; const coffee d {c + 25}; //new object cout << "d = c + 25 = " << d << "\n"; const coffee e {30 + c}; //int + coffee cout << "e = 30 + c = " << e << "\n"; cout << "d - c = " << (d - c) << "mg\n"; //int result cout << "c++ prints old value: " << (c++) << "\n"; cout << "now c = " << c << "\n"; if (c < d) { cout << "c is weaker than d.\n"; } if (c != d) { cout << "c is not equal to d.\n"; } return EXIT_SUCCESS; }