问题1 报错
matrix.h:21:23: error: expected ‘)’ before ‘<’ token
Matrix(vector < vector<float> > v1, vector < vector<float> > v2);
原因将上述定义中的vector变为std::vector问题解决
问题2 matrix.h:33:52: error: ISO C++ forbids declaration of ‘setGrid’ with no type [-fpermissive]
setGrid(std::vector< std::vector<float> > v);
方法前没有返回值,上述setGrid前加void问题解决