title: Check to see if an element exists in a 2D array C++
body: <p>I am trying to check to see if an character element is in my output array. The array is getting the frequency of the characters in a string. So i want to say if the current character is in the array then add 1 to the frequency else add the character to the array with a frequency of 1. Also, I want the table to display the top 5 highest frequency's in order.</p>
  
  <p>EX of what the table should look like:</p>
  
  <pre><code>  character: a b c d
    freqency:  1 2 3 4
  
  
  string input = GetInputString(inputFileName);
  char ** output; 
  
  for (int i = 0; i &lt; sizeof(output); i++)
  {
        if (input [count] == output[i][]) // this is where my issue is
        {
  
              //.......
        }
  
  }
  </code></pre>