title: C++ overflowed buffer
body: <p>I am having trouble with a buffer overflow with the char command in C++, as I am new to C++ coding. Here is my code. My issue is on the seventh line.</p>
  
  <pre><code>#include "stdafx.h"
  #include &lt;iostream&gt;
  #include &lt;cstdlib&gt;
  int main()
  {
      char word[90];
      std::cout &lt;&lt; "Type in your name to find out your gangster name!" &lt;&lt; std::endl;
      std::cin &gt;&gt; word;
      std::cout &lt;&lt; "Your gangster name is..." &lt;&lt; std::endl;
      std::cout &lt;&lt; "Da" &lt;&lt; word &lt;&lt; std::endl;
      system("pause");
  }
  </code></pre>
  
  <p>How do I allow the variable to consist of an unlimited amount of letters?</p>