title: C++ Add+Edit Text in Qt System() via Variables
body: <p>I am new to C++ and my Problem is to Edit this function</p>
  
  <pre><code> system("gnome-terminal -x sh -c 'cd ;cd catkin_ws/src/motoman/motoman_driver/src; ./move_to_joint.py [0,0,0.1,0,0,0];exit;exec bash'");
  </code></pre>
  
  <p>I would like to edit via variable how can i do that?</p>
  
  <pre><code>char test;
  
   system("gnome-terminal -x sh -c 'cd ;cd catkin_ws/src/motoman/motoman_driver/src; ./move_to_joint.py [%c,0,0.1,0,0,0];exit;exec bash'", test);
  </code></pre>
  
  <p>This doesn't work, how can I achieve this?</p>