- vector的二维数组容器
首先是赋值方法
vector<int, int> vec;
int a[1][1];
a[0][0] = 1;
vec.push_back(a[0][0]);
或者
vector<vector<int>> vec;
vec = vector<vector<int>>(1, vector<int>(0));
for (auto i = vec.begin(); i != vec.end(); ++i)
for (auto j = (*i).begin(); j != (*i).end();++j)
{ }
2.单精度float与双精度float转为十进制的有效数字有几位
单精度:7位
双精度:16位