title: Making a string from multiple doubles and char C++
body: <p>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.</p>
  
  <pre><code>operand2 = A.pop();     //double
  operand1 = A.pop();     //double
  math = "-";             //char
  result = "%f %s %f",operand1, math, operand2;     //string
  A.push(result);
  </code></pre>
  
  <p>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!</p>