title: C++ constructor - error expected ')' before '*' token
body: <p>I've got this error "expected ')' before '*' token" and i don't get why:</p>
  
  <p>This is my EventController.h code</p>
  
  <pre><code>#ifndef EVENTCONTROLLER_H_
  #define EVENTCONTROLLER_H_
  #include &lt;iostream&gt;
  #include "EventModel.h"
  #include "UserModel.h"
  using namespace std;
  #include &lt;vector&gt;
  #include &lt;stdexcept&gt;
  #include "Observer.h"
  
  class EventController{
  public:
      EventController(EventModel *eventModel, UserModel *userModel);
      virtual ~EventController();
      void EventDoneUndone(bool&amp; eventcurrentstate);
      void addPerson2Event(UserModel *userModel, EventModel *eventModel);
      void Update();
  
  private:
      EventModel *eventModel;
      UserModel *userModel;
  };
  
  #endif /* EVENTCONTROLLER_H_ */
  </code></pre>
  
  <p>And this is my EventController.cpp where i get the error</p>
  
  <pre><code>#include "EventController.h"
  #include &lt;iostream&gt;
  #include "EventModel.h"
  #include "UserModel.h"
  
  
  EventController(eventModel *eventModel, userModel *userModel){ **HERE I GET THE ERROR**
      this-&gt;eventModel = eventModel;  
      this-&gt;userModel =  userModel;       
  
      // eventModel-&gt;attach();    
      // userModel-&gt;attach();
  }
  
  EventController::~EventController() {
      // TODO Auto-generated destructor stub
  }
  
  void eventDoneUndone(EventModel eventModel1){
      eventModel1.toggleState();
  }
  
  void addPerson2Event(UserModel userModel1, EventModel eventModel1) {
      eventModel1.setPerson2Event(userModel1);
  }
  
  void EventController::Update(){ //maniera Pull  Observer myObs
  
      cout &lt;&lt; "C'è stato un Update su";
  
  }
  </code></pre>
  
  <p>Hope you guys can help me, i've already try to figure it out looking for solution in others guys problems but i failed.</p>
  
  <p>[1] <a href="https://imgur.com/a/oXR8y" rel="nofollow noreferrer">https://imgur.com/a/oXR8y</a></p>