title: How to insert data into an array of single structure data type
body: <p>Im trying to put data into an array</p>
  <pre class="lang-cpp prettyprint-override"><code>#include &lt;iostream&gt;
  #include &lt;stdio.h&gt;
  #include &lt;cstring&gt;
  
  using namespace std;
  
  struct table {
      int number;
      double  rate, hour;
      string name;
  } test[5];
  
  int main()
  {
      test[0]={2,0.0,1.1,'m'};
      test[1]={2,0.0,1.1,'m'};
     
     return 0;
  }
  </code></pre>
  <p>I know the syntax is wrong for this  <code>test[0]={2,0.0,1.1,'m'};</code>. please correct it.</p>