1

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;

1
  • 1
    If you've seen the answer then add your own answer to the question and select it as the correct answer. Or select the answer below if it was correct. Commented Sep 26, 2010 at 0:02

1 Answer 1

12

What's vector? If it is supposed to be std::vector, then did you include <vector>? And it is std::vector, not just vector, unless you have the corresponding using declaration or directive somewhere higher in the code.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.