无法转换std :: vector< std :: vector< char> >' to' int'
在
vector<vector<char>> map(x+2,vector<char>(y+2));
Read_map(x, y, map, &task);
Main.h Main.h
void Read_map(int x,int y, vector<vector<char>> &map, int *task);
MAIN中编译后的 它说不能转换std :: vector&lt; std :: vector&lt; char&gt; &gt;
to int
和in head.h 它说“向量”尚未声明
我们是否需要在Head.h #include&lt; vector&gt;
中声明?
谁能告诉我如何解决? 请
谢谢
In main
vector<vector<char>> map(x+2,vector<char>(y+2));
Read_map(x, y, map, &task);
In head.h
void Read_map(int x,int y, vector<vector<char>> &map, int *task);
after compiler in main
it say cannot convert std::vector<std::vector<char> >
to int
and in head.h
it say 'vector' has not been declared
whether we need to declared in head.h #include<vector>
?
can anyone tell me how to solve it?
please
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论