Firstly, this code doesn't do what you think it is. reserve() doesn't resize(). vector<int> v; v.reserve(100); v[0] = 1; //undefined cout ...
確定! 回上一頁