title: create argc argv in the code
body: <p>Hi very newbie question but I just can't figure it out:</p>
  
  <p>I have a function named bar</p>
  
  <pre><code>class foo
  {
      public:
          bool bar(int argc, char** argv);
  }
  </code></pre>
  
  <p>argv is supposed to contain</p>
  
  <pre><code>"--dir" and "/some_path/"
  </code></pre>
  
  <p>How do I create argv and argc so that I can pass them into bar() ? I've tried many ways but I just can't get pointer and type conversion right.</p>
  
  <p>So instead of getting argv from command line, I want to create it in the code.</p>
  
  <p>Thank you for any input!</p>