title: How to use command line arguments in C++ program?
body: <p>I know that to use command line arguments, I have to do this.</p>
  
  <p><code>int main(int argc, char* argv[])</code></p>
  
  <p>Now most of the documentation i read about taking in command line arguments explain the situation, something like this:</p>
  
  <blockquote>
    <p>Command-line arguments are given after the name of a program in
    command-line operating systems like DOS or Linux, and are passed in to
    the program from the operating system.</p>
  </blockquote>
  
  <p>So the only way i know to open my program, is to open it normally like i would do, either start debugging or open the exe file</p>
  
  <p>Now here it seems that, to use command line arguments the program has to be opened differently, Using the Command-Line (Windows Command Prompt for example), and then write the arguments after it.</p>
  
  <p>So my question is</p>
  
  <p>How do i open my program using the Command-Line, and how do i enter the arguments after the program name?</p>