【在 w**********o 的大作中提到】 : 一个为有志于从事学术的人的PhD offer评价准则,大家提点意见 : 学校的综合排名 OR : 学院的专业排名 MR : 导师的H-index H : 导师担任某journal editor的数量 E : 导师担任会议chair的次数(同一会议数次担任只算一次) C : 导师担任协会fellow的数量 F : 导师编写学术专著章节的总数量 Ch : 导师对题目的擅长,专注程度 Th (若博士题目为 : 导师的第一研究兴趣,并且他十分擅长取20,若他在该方向丝毫不懂取0 ,其他情况适
j*g
36 楼
简单测试一下楼主的class, 发现这句不能compile: this->children->parent = a; main.cpp: In constructor ‘A::A(A*, int)’: main.cpp:25: error: base operand of ‘->’ has non-pointer type ‘std::vectorallocator >’ 这是为什么呢?多谢!
you read it wrong -- it said when you clear() the vector, or pop_back(), or erase(), it probably won't release the memory. but when you delete the vector, it will and it must. read book carefully.