title: c++- variables to system()
body: <p>I am working on a console program for Windows, and one of my settings is an option to change the console and text color. 
      <br>
  I am using c++, so I can do something like <code>system("color 07");</code>, which will make the background black and the text white. 
      <br>
  What I want to do is to present all 16 color options, and then let the user take his pick. 
      <br>
  (Below is a portion of my code):</p>
  
  <pre><code>int a;
  int b;
  cout &lt;&lt; "Please enter your background color." &lt;&lt; endl;
  cin &gt;&gt; a;   //the user inputs 0
  cout &lt;&lt; "Please enter your text color." &lt;&lt; endl;
  cin &gt;&gt; b;     //the user inputs 7
  </code></pre>
  
  <p>How to I pass the two variables to the system() call? I googled around, but all I could find were string to system(), which I do not want.
      <br>
      <br>
  Also, I am very well aware of how evil system() is, so if anyone has other options other than system() that will do the same thing, that would be fine. But please do not tell me how evil system() is.
      <br>
      <br>
  Thanks in advance!!</p>