title: char* and cin in C++
body: <p>I would like to input a string of indefinite length to a char * variable using cin;</p>
  
  <p>I can do this:</p>
  
  <pre><code>char * tmp = "My string";
  cout &lt;&lt; tmp &lt;&lt; endl;
  system("pause");
  </code></pre>
  
  <p>It works perfectly. </p>
  
  <p>But I fail to do this:          </p>
  
  <pre><code> char * tmp
   cin &gt;&gt; tmp;
  </code></pre>
  
  <p>Could you give me a hing what's wrong"</p>