问题遇到的现象和发生背景
vector创建的数组存不进去东西了,不知道咋回事。
问题相关代码,请勿粘贴截图
int main{
vector<int> aaa;
aaa.push_back(10);
aaa.push_back(20);
cout << aaa[0] << " " << aaa[1] << endl;
vector<float> bbb;
bbb.push_back(10.00);
bbb.push_back(20.00);
cout << bbb[0] << " " << bbb[1] << endl;
cout << endl;
}