title: How do I open a terminal window with C++ in Ubuntu?
body: <p>I recently decided to start teaching myself C++ and thought a simple encryption project would be a good place to start, since it covers most of the basics (cout, cin, opening files, etc). Is there a way to have the code open a terminal window similar to the one opened when I compile and run from sublime text?</p>
  
  <p>I have tried this so far, but it hasn't changed anything.</p>
  
  <pre><code>    string cmd = "gnome-terminal-x sh-c 'ls-l; exec bash'";
      system(cmd.c_str());
  </code></pre>
  
  <p>Essentially, I would like to be able to run the program by clicking the .exe, and have the terminal where all of the input and output goes pop up. </p>