views:

99

answers:

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;

+10  A: 

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.

AndreyT