title: C++ System Command Eddor
body: <p>So I'm trying to make a DoSer program with C++ using system commands. this is a work in progress and I'm pretty new to C++ and I'm trying to use the ping command with a variable in the same line, look at the code and you will realise what I want</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main()
  {
      int targ;
      system("color a")
      ;system("title C++ DoSer ")
      ;cout &lt;&lt; " What Site/IP Is Your Target?" &lt;&lt; endl;
      cin &gt;&gt; targ;
      system("ping");targ("-t -l 65500")
      ;return 0;
  }
  </code></pre>
  
  <p>but it keeps saying "targ  cannot be used as a function". please help</p>