Halo guys i have error message expected-class name before "{" token
here is my code
////////////////////////////////////////////////////////////////////
The problem is that you have a circular dependency.
1. CocktailSimulator.h includes CocktailMachine.h.
2. CocktailMachine.h tries to include CocktailSimulator.h but the include guard prevents the content of CocktailSimulator.h from being included.
3. CocktailMachine.h tries to define CocktailMachine as a subclass of CocktailSimulator but that doesn't work because CocktailSimulator has not yet been defined.
The solution is to not include CocktailMachine.h from CocktailSimulator.h.