title: C++ command line argument comparison
body: <p>I am doing some validation of the arguments passed by command line in C++ and am having some difficulties.</p>
  
  <p>I am doing like so</p>
  
  <pre><code>./a.exe inputfile.txt outputfile.txt 16 flush_left
  </code></pre>
  
  <p>And I am trying to do the validation like so</p>
  
  <pre><code>if(argv[4] == "flush_left" || argv[4] == "flush_justify" || argv[4] == "flush_right"){
  </code></pre>
  
  <p>And its not working out as planned. Though I am not seeing why this won't work. From everything I've read and seen that should be just fine</p>