title: creating multiple objects for classes/structures?
body: <p>I have a question. Is it possible to create multiple objects during run time for classes or structures?</p>
  
  <pre><code>#include&lt;iostream&gt;
  #include&lt;conio.h&gt;
  using namespace std;
  struct node
  {
         int no;
  };
  
  int main()
  {
     int i;
     for(i=0;i&lt;4;i++)
     {
                     struct node s[i];
     }
     cout&lt;&lt;"Enter the values";
     for(i=0;i&lt;4;i++)
     {
                     cin&gt;&gt;s[i].no;
     }
     cout&lt;&lt;"The values are:";
     for(i=0;i&lt;4;i++)
     {
                     cout&lt;&lt;s[i].no&lt;&lt;endl;
     }
     getch();
     return 0;
  }
  </code></pre>
  
  <p>I tried the method above , but didn't succeed . Any help would be appreciated </p>