title: Executing an .exe file along command line arguments in Visual Studio
body: <p>I am using two projects in Visual Studio and I want to execute/run an .exe file with command line arguments.</p>
  
  <p>Variables I want to use as command line arguments:</p>
  
  <pre><code>    float OneXa = Line1.a.XHnit; // argument 1
      float OneYa = Line1.a.YHnit; // argument 2
      float OneXb = Line1.b.XHnit; // argument 3
      float OneYb = Line1.b.YHnit; // argument 4
  
      float TwoXa = Line2.a.XHnit; // argument 5
      float TwoYa = Line2.a.YHnit; // argument 6
      float TwoXb = Line2.b.XHnit; // argument 7
      float TwoYb = Line2.b.YHnit; // argument 8
  </code></pre>
  
  <p>The executing command along with the command line arguments. The .exe file executes, BUT the command line arguments are not passed along to the .exe file.I want to use variables as arguments, or at least their values. <strong>That is my problem here.</strong></p>
  
  <pre><code>    system("Lokaverkefni3.exe OneXa OneYa OneXb OneYb TwoXa TwoYa TwoXb TwoYb"); // DOESN'T WORK
      system("Lokaverkefni3.exe 2 3 4 5 6 7 7 8"); // WORKS
  </code></pre>