title: C++ queue - simple example
body: <p>I can't find simple example how to use queues in C++ for pointers to some myclass objects. I have code like this:</p>
  
  <pre><code>class myclass{
    string s;
  };
  
  myclass *p = new myclass();
  
  my_queue.push(p);
  
  //something....
  
  p = my_queue.front();
  my_queue.pop();
  
  std::cout &lt;&lt; p-&gt;s;
  </code></pre>
  
  <p>What should be <strong>declaration of my_queue</strong>? Should I use queue or another data structure?</p>
  
  <p>I need c++ just for small program, <strong>thanks</strong> for answers.</p>