Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
edited tags
Link
Robert Harvey
  • 181.5k
  • 48
  • 349
  • 516
added 70 characters in body
Source Link
user69514
  • 27.8k
  • 65
  • 158
  • 190

What is wrong wit the following constructor declaration? I keep getting this error:

Expected ')' before token '<'

class Environment{ public: Environment(vector<vector<char> > roomData); private: //.... }; 

Note: ok I see what's wrong. I did not add: using namespace std;

What is wrong wit the following constructor declaration? I keep getting this error:

Expected ')' before token '<'

class Environment{ public: Environment(vector<vector<char> > roomData); private: //.... }; 

What is wrong wit the following constructor declaration? I keep getting this error:

Expected ')' before token '<'

class Environment{ public: Environment(vector<vector<char> > roomData); private: //.... }; 

Note: ok I see what's wrong. I did not add: using namespace std;

Source Link
user69514
  • 27.8k
  • 65
  • 158
  • 190

C++ Constructor error - Expected ')' before token '<'

What is wrong wit the following constructor declaration? I keep getting this error:

Expected ')' before token '<'

class Environment{ public: Environment(vector<vector<char> > roomData); private: //.... };