Expected '(' for function-style cast or type construction
<p>So I'm trying to create a class Room that simulates a hospital room but it keeps giving me an error in my constructor.  Sometimes there's no issue but then it comes back....other user defined objects here include a Patient class that has no problems and a LinkedList template class that also has no issues.   </p>

<p>Here's the header</p>

<pre><code>class Room
{
public:

    Room();
    Room(int);
    static LinkedList&lt;Room&gt; createRooms();

    Patient patient;
    int roomNumber;

    bool operator==(const Room &amp;other) const; //overload ==
    bool operator!=(const Room &amp;other) const; //overload !=
    void operator=(const Room &amp;other) const; //overload =



};
</code></pre>

<p>and the cpp</p>

<pre><code>#include "Room.h"

Room::Room();
Room::Room(int n)
{
    roomNumber= n;
    patient= Patient();
}
LinkedList&lt;Room&gt; Room::createRooms() {
    //create rooms up until ROOMS is reached
    LinkedList&lt;Room&gt; roomList;
    for(int i= 1; i &lt; 11; i++){
        Room room= Room(100+i);
        roomList.push(room);
    }
    return roomList;

}
//Overload ==
bool Room::operator==(const Room &amp;other)const{
    //compare each room's room number field
    return (this-&gt;roomNumber == other.roomNumber &amp;&amp; this-&gt;patient == other.patient);

}
//Overload !=
bool Room::operator!=(const Room &amp;other)const{
    return !(this == &amp;other);
}

void Room::operator=(const Room &amp;other)const{
    this-&gt;patient= other.patient;
    this-&gt;roomNumber= other.roomNumber;
}
</code></pre>

<p>the problem is with the Room(int) constructor.  Xcode keeps giving me a message saying Expected '(' for function-style cast or type construction</p>

<p>I have no idea what's going on</p>
