title: Implementing a simple queue using arrays
body: <p>I don't know much about arrays and queues and stacks. I know how to implement a simple queue.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;queue&gt;
  
  using namespace std;
  
  void main()
  {
      queue&lt;char&gt; queue1;
      queue1.push('a');
      queue1.push('b');
      queue1.push('c');
      queue1.push('d');
  
      while(!queue1.empty())
      {
          cout &lt;&lt; queue1.front();
          queue1.pop();
          cout &lt;&lt; endl;
      }
  
      system("pause");
  }
  </code></pre>
  
  <p>How can I implement a simple queue using an array?</p>