vector在不同的地方定义规则不同吗
#include <vector>using std::vector;class Example{private:vector<double> vec(10);// 针对10报错:应输入类型说明符vector<double> vec2(int);// 这样写不报错,但是有什么意义};vector<double> vec3(10);// 为什么在类外面又可以这么写