#ifndef LIQUIDH #define LIQUIDH #include #include "gas.h" using namespace std; class liquid { int n; public: liquid(int initial_n): n(initial_n) {} operator gas() const {cout << "liquid to gas\n"; return n;} //return gas(n); }; #endif