title: How to input a string array in C++
body: <p>I want to input a string array in C++. 
  For example:</p>
  
  <pre><code> name[]={"jun","hua","kyu",..}
                cout&lt;&lt;name[2];
  </code></pre>
  
  <p>output: hua</p>
  
  <p>This is my code but the string that I input doesn't stop. I don't know how to fix it. Please, help me. Thank you.</p>
  
  <pre><code> string name[50];
  string st;
  int i=0;
      do{
              cin&gt;&gt;st;
              name[i]=st;
              i++;    
          } while (st!="\0");
  </code></pre>