title: How do I check for stored "\t" in a string?
body: <p>Can someone explain to me how to properly search for a "tab" character stored in a string class?</p>
  
  <p>For example:</p>
  
  <p><em>text.txt contents:</em></p>
  
  <pre><code>        std::cout &lt;&lt; "Hello"; // contains one tab space 
  </code></pre>
  
  <p>User enters on prompt: <strong>./a.out &lt; text.txt</strong></p>
  
  <p>main.cpp:</p>
  
  <pre><code>string arrey;
  getline(cin, arrey);
  int i = 0;
  while( i != 10){
       if(arrey[i] == "\t") // error here
       {
           std::cout &lt;&lt; "I found a tab!!!!"
       }
       i++;
  }
  </code></pre>
  
  <p>Since there is only one tab space in the textfile, I am assuming it is stored in index [0], but the problem is that I can't seem to make a comparison and I don't know any other way of searching it. Can someone help explain an alternative?</p>
  
  <p><code>Error: ISO C++ forbids comparison between pointer and integer</code></p>