I'm trying to make a string out of a couple doubles and a character. I know my code here is wrong but I think it gives an idea of what I want to do.
operand2 = A.pop(); //double
operand1 = A.pop(); //double
math = "-"; //char
result = "%f %s %f",operand1, math, operand2; //string
A.push(result);
I have tried researching how to do this. I am unfamiliar with sprintf and sprintcat, but is that the best method to go about doing this? Thank you so much for any input!