Call to non-static member function without an object argument compiler error
The error message from the compiler is very clear. getInput is a non-static member function of the class. You need an object of the class to be able to use that member function. Instead of use Another solution. Since the class does not have any member variables, you may change getInput to a static member functions. If you do that, you … Read more