I am having some trouble with vector declarations in the header file of a C++ class I am making. My entire header file looks like this:
#ifndef PERSON_H #define
You're missing the namespace:
std::vector
In my case, adding the namespace did not work, however, I was missing the
#include <vector>;
You need to put 'std::' before 'vector' just like you did with string.