title: Vector error message and how to insert an object into a vector in C++?
body: <p>I have a <code>Room</code> class and it has this constructor:</p>
  
  <pre><code>Room::Room(string a, int b, int c, string d)
  </code></pre>
  
  <p>And in my main function I do:</p>
  
  <pre><code>vector&lt;Room&gt; room;
  sale.push_back("aaa", 1, 2, "ccc");
  </code></pre>
  
  <p>It gives me this error:</p>
  
  <pre><code>error: no matching function for call to ‘std::vector&lt;Room, std::allocator&lt;Room&gt; &gt;::push_back(const char [4])’
  
  note: candidates are: void std::vector&lt;_Tp, _Alloc&gt;::push_back(const _Tp&amp;) [with _Tp = Room, _Alloc = std::allocator&lt;Room&gt;]
  </code></pre>
  
  <p>I don't understand this error. How can I add a new room object into the vector?</p>