title: Why does my for loop not get argv properly?
body: <p>So Im new to coding, and I was wondering why my for loop is not going through argv correctly. When I run it, it doesnt run at all. Here is the bit of code that matters:</p>
  
  <pre><code>int main(int argc, char* argv[]){
  bool isCapital[500];
  bool capital;
  bool isSpace[500];
  bool space;
  bool palindrome;
  cout&lt;&lt;"Test";
  for(int j=1; argv[j][0]!='-'; j++){
      cout&lt;&lt;argv[j][0];
      if('-'==argv[j][0]){
          cout&lt;&lt;j;
          for(int i=0; argv[j][i]!='\0'; i++){
              if((argv[j][i])==('c'|'C')){
                  isCapital[j]=true;
                  break;
                  cout&lt;&lt;isCapital[j];
              }
          }
          for(int i=0; argv[j][i]!='\0'; i++){
              if((argv[j][i]==('s'|'S'))){
                  isSpace[j]=true;
                  break;
              }
          }
      }
  }
  </code></pre>