c++中vector的size问题
#include <iostream>#include <vector>
#include <algorithm>
using namespace std;
int main()
{
vector<int> a{70,30,40,10,80,20,90,100,75,60,45};
int len=a.size();
cout<<len<<len;
return 0;
}
为什么输出是1111而不是11
2018-09-18 18:24



2018-09-18 20:45


2018-09-19 10:13