Screw_Toxic
2017-11-15 13:54这个向量输出哪里错误了
#include
#include
using namespace std;
struct QUA
{
int x;
int y;
};
class block
{
public: vector c1;
public: vector c2;
};
vector b;
int main()
{
QUA q;
q.x=1;
q.y=2;
b[0].c1.push_back(q);
cout<<b[0].c1[0].x<<" "<<b[0].c1[0].y<<endl;
return 0;
}
- 点赞
- 回答
- 收藏
- 复制链接分享
3条回答
为你推荐
- 求各位大神看一下哪里错了,怎么改。
- 神经网络
- python
- 生成batch
- tensorflow
- 1个回答
- c++程序调试了好久总是出错,好像是指针的问题
- 内存溢出
- c++
- 指针
- 3个回答
- 刚接触matlab,就遇到这个问题,完全看不懂为什么会报这个错
- matlab
- 1个回答