title: How to add items of a class to an array in c++ without giving them a name
body: <p>I am trying to make a game in c++, and I would like to add bullets to an array but not give them a name. In javascript, I would be able to do something like:</p>
  
  <pre><code>var bullets =[]
  bullets.push(new bullet(x,y))
  </code></pre>
  
  <p>How would I do something similar in c++; creating a new object in a class without giving it a name and also adding it to an array? </p>