How do I call functions from other classes from inside another class? I have an assignment to make this sort of thing but I was sick on the day we learned it. I have errors on lines 58,61,64,67, and 71. What am I doing wrong?
Edit: I am completely lost so I apologize for the lack of info. I've heard of "Friend Classes", are these related to my topic?
The functions inside your logic class should just be free functions. (Also, mathematical operations don't really fit into the category of 'logic' to begin with...)
By the way, in C++ things have to be physically defined sooner in the source file before they are used.
LB, thank you for the information! So I should just remove the "logic" class (I know its not bool logic but I needed a name :-/)? Just for the sake of learning, is there any way to keep the class and still use the functions inside of it? Or is having them stay separate something that has to do with the language being object oriented? Again, thank you for the help and I will try your suggestion.