title: Convert double to string C++?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/332111/how-do-i-convert-a-double-into-a-string-in-c">How do I convert a double into a string in C++?</a>  </p>
  </blockquote>
  
  
  
  <p>I want to combine a string and a double and g++ is throwing this error:</p>
  
  <p>main.cpp: In function ‘int main()’:<br />
  main.cpp:40: error: invalid operands of types ‘const char [2]’ and ‘double’ to binary ‘operator+’</p>
  
  <p>Here is the line of code which it is throwing the error on:</p>
  
  <pre>
  storedCorrect[count] = "("+c1+","+c2+")";
  </pre>
  
  <p>storedCorrect[] is a string array, and c1 and c2 are both doubles. Is there a way to convert c1 and c2 to strings to allow my program to compile correctly?</p>