title: How to store full name with whitespace in array c++?
body: <p>I want to store the full name in array with whitespace but when I type the name, the run to exit. Can you guys help me?</p>
  <pre><code>int main()
  {
  int user1, user2;
  char name[100][10000];
  int num[10000];
  int temp;
  cout &lt;&lt; &quot;Number of students: &quot;; cin &gt;&gt; user1; cout &lt;&lt; &quot;\n&quot;;
  for(int i = 0; i &lt; user1; i++)
  {
      cout &lt;&lt; &quot;Students No.&quot; &lt;&lt; i + 1; 
      cout &lt;&lt; &quot;\nName: &quot;; cin &gt;&gt; name[i];
      cout &lt;&lt; &quot;Num: &quot;; cin &gt;&gt; num[i];
      cout &lt;&lt; &quot;\n&quot;;
  }
  </code></pre>