title: error: no matching function for call to "Queue::Queue()"
body: <p>So I am trying to call a function in my main.cpp file but I get "error: no matching function for call to 'Queue::Queue()."</p>
  
  <p>Queue.h</p>
  
  <pre><code>#ifndef QUEUE_H
  #define QUEUE_H
  #include &lt;iostream&gt;
  
  class Queue
  {
      public:
          Queue(int);
          ~Queue();
          //circular queue methods
          void enqueue(std::string);
          std::string dequeue(); //should send through network, call transmit msg
          void printQueue();
          bool queueIsFull(); //send when full
          bool queueIsEmpty(); //send when empty
  
      protected:
      private:
          int queueSize;
          int queueHead;
          int queueTail;
          int queueCount;
          std::string *arrayQueue;
  };
  
  #endif // QUEUE_H
  </code></pre>
  
  <p>Queue.cpp</p>
  
  <pre><code>#include "Queue.h"
  #include &lt;iostream&gt;
  #include &lt;fstream&gt;
  #include &lt;sstream&gt;
  #include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  #include &lt;stdlib.h&gt;
  
  using namespace std;
  
  Queue::Queue(int qs)
  {
      queueSize = qs;
      arrayQueue = new string[queueSize];
      queueHead = 0;
      queueTail = 0;
  }
  
  Queue::~Queue()
  {
      delete[] arrayQueue;
  }
  
  void Queue::enqueue(string word)
  {
      for (int i=0;i&lt;10;i++)
      {
          arrayQueue[i] = word;
      }
  
  }
  
  void Queue::printQueue()
  {
      for(int j=0;j&lt;10;j++)
      {
          cout&lt;&lt;arrayQueue[j]&lt;&lt;endl;
      }
  }
  </code></pre>
  
  <p>main.cpp</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include "Queue.h"
  
  
  using namespace std;
  
  int main()
  {
  
      int userChoice;
      Queue q;
  
      while(2==2)
      {
  
          cout&lt;&lt;"======Main Menu======"&lt;&lt;endl;
          cout&lt;&lt;"1. Enqueue word"&lt;&lt;endl;
          cout&lt;&lt;"2. Dequeue word"&lt;&lt;endl;
          cout&lt;&lt;"3. Print queue"&lt;&lt;endl;
          cout&lt;&lt;"4. Enqueue sentence"&lt;&lt;endl;
          cout&lt;&lt;"5. Quit"&lt;&lt;endl;
          cin&gt;&gt;userChoice;
  
          if (userChoice == 1)
          {
              string enqueueWord;
              cout&lt;&lt;"word: ";
              cin&gt;&gt;enqueueWord;
              enqueue(enqueueWord);
          }
  
          if (userChoice == 2)
          {
  
          }
  
          if (userChoice == 3)
          {
  
          }
  
          if (userChoice == 4)
          {
  
          }
  
          if (userChoice == 5)
          {
  
          }
  
      }
      return 0;
  }
  </code></pre>
  
  <p>So to call the function from the header file I did "Queue q;" at the beginning of the int main() and then when I needed to call the function I did "q.enqueue(enqueueWord)." I also tried just doing "Queue::enqueue(enqueueWord), but that also didn't work and I get a different error. I feel like this is an easy fix but I just can't figure it out. Thanks for the help and feel free to ask me to clarify anything.</p>