title: How to cin Space in c++?
body: <p>Say we have a code:</p>
  
  <pre><code>int main()
  {
     char a[10];
     for(int i = 0; i &lt; 10; i++)
     {
         cin&gt;&gt;a[i];
         if(a[i] == ' ')
            cout&lt;&lt;"It is a space!!!"&lt;&lt;endl;
     }
     return 0;
  }
  </code></pre>
  
  <p>How to cin a Space symbol from standard input? If you write space, program ignores! :(
  Is there any combination of symbols (e.g. '\s' or something like this) that means "Space" that I can use from standard input for my code?</p>