摘要:
int main() { typedef map myMap; myMap test; //插入 test.insert(pair(1, "a")); test.insert(pair(2, "b")); test.insert(pair(3, "c")); test.insert(pair(4, "d")); test.inser... 阅读全文
摘要:
size变小 capacity没有变化 阅读全文
摘要:
class A { public: A(int n):m_n(n){ m_ptr = new int(m_n); } A(const A& x){ m_n = x.m_n; m_ptr = new int(m_n); memcpy(m_ptr, x.m_ptr, sizeof(int)*m_n); }... 阅读全文