I want to know how to convert a user's imput into an operator.
For example:
"Enter an equation in the form of y = and using x's"
User enters "y = x*x"
code converts it into the operator y = x*x and values can be entered into it.
Is there any way to do that? It would be really helpful for a lot of things I want to do with c++.
You could test each character in the input to see if it is an operator, if it is, use that operator between the operands (x's), is this what you mean?
For more complicated expressions, you could look into using stacks and pushing the operators/operands onto stacks, popping them off when you need them, but that's much more involved than testing input.