Ok, I have 3 static data members defined for a class "calculator" in a file ('calculator.h') how do initialize these for use?
The three data memberes are:
static float display
static float num1
static char command
i have tried putting them in the constructor like this:
float...
I am in a beginning programming class. We are writing a calculator program. I would like to know how I can cin to a string then check if the string is a number (float or int) or a command (of type char: / + - *) if it is a number is needs to be converted to float, if it is a command it needs to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.