title: C++ "cin" only reads the first word
body: <pre><code>#include&lt;iostream.h&gt;
  #include&lt;conio.h&gt;
  class String
  {
      char str[100];
      public:
      void input()
      {
          cout&lt;&lt;"Enter string :";
          cin&gt;&gt;str;
      }
  
      void display()
      {
          cout&lt;&lt;str;
      }
  };
  
  int main()
  {
       String s;
       s.input();
       s.display();
       return 0;
  }
  </code></pre>
  
  <p>I am working in Turbo C++ 4.5. The code is running fine but its not giving the desired output
  for e.g if i give input as "steve hawking" only "steve" is being displayed. Can anyone please help?</p>