title: I don't Understand why I'm using the letter i in this situation
body: <p>I'm just starting in c++ and working on a simple console app, and the instructor didn't explain some things. In this one part he said to code this in, </p>
  
  <pre><code>//increment the turn number
  MyCurrentTry++;
  
  //setup a return variable
  FBullCowCount BullCowCount;
  
  //loop through all letters in the guess
  int32 HiddenWordLenth = MyHiddenWord.length();
  for (int32 i = 0; i &lt; HiddenWordLenth; i++) {
      // compare letters against the hidden word
      for (int32 j = 0; j &lt; HiddenWordLenth; j++) {
          // if they match then       
          if (Guess[i] == MyHiddenWord[i]) { //if they're in the same place
  
              if (i == j) { // increment bulls 
                  BullCowCount.Bulls++; // Incriment Bulls
  
              }
              else
              {
                  BullCowCount.Cows++; //must be a cow
              }
  </code></pre>
  
  <p>Now I understand this is a bit messy (sorry) but if someone could explain possibly why I'm using <code>i</code> and what <code>i</code> does (is it some sort of variable, or what?), I would greatly appreciate it. If my question isn't clear or I'm doing something wrong let me know (The instructor said this "i" is going to end up creating a bug but I would like to know the purpose of it anyways)</p>