title: Created pointer but how to write in class?
body: <p>I have initialized Queue *q1, *q2; but it could not create the Queue in my Queue class</p>
  
  <p>Main </p>
  
  <pre><code>Queue *q1, *q2; // Global variable
  </code></pre>
  
  <p>Queue class </p>
  
  <pre><code>// codes......
  
  Queue::Queue() { // default constructor
      size = 0;
      front = 0;
      rear = Q_MAX_SIZE -1;
  }
  
  Queue::~Queue() { 
      while(!isEmpty()) {
          dequeue();
      }
  }
  
  void Queue::enqueue(Car c) {
      if (!isFull()) {
          rear = (rear + 1) % Q_MAX_SIZE; // circular array
          carQueue[rear] = c;
          size++;
      } else {
          cout &lt;&lt; "Queue is currently full.\n";
      }
  }
  
  // codes.....
  </code></pre>
  
  <p>I cannot seem to initialize the Queue with the default constructor cause in debugging mode, it cannot read any size, front and rear. </p>