但行好事,莫问前程

摘要: map1 生成构造// constructing maps#include #include bool fncomp (char lhs, char rhs) {return lhs first; first['a']=10; first['b']=30... 阅读全文
posted @ 2018-08-06 17:39 专业路过 阅读(235) 评论(0) 推荐(0)
摘要: list 双向列表,链式存储1 生成构造// constructing lists#include #include int main (){ // constructors used in the same order as described abo... 阅读全文
posted @ 2018-08-06 16:12 专业路过 阅读(240) 评论(0) 推荐(0)
摘要: queue 单向队列,从一端存,从列一段取1 生成构造2 操作2.1 大小和容量2.2 比较2.3 find2.4 截取部分2.5 增,插,删,改/* * use QQueue on qt,but c++ is queue * constructor ... 阅读全文
posted @ 2018-08-06 15:30 专业路过 阅读(240) 评论(0) 推荐(0)
摘要: deque1 生成构造// constructing deques#include #include int main (){ unsigned int i; // constructors used in the same order as descr... 阅读全文
posted @ 2018-08-06 14:50 专业路过 阅读(253) 评论(0) 推荐(0)
摘要: vector1 生成构造// constructing vectors#include #include int main (){ // constructors used in the same order as described above: st... 阅读全文
posted @ 2018-08-06 11:20 专业路过 阅读(142) 评论(0) 推荐(0)
摘要: 对象树销毁 当创建一个object对象时,如果使用了其他对象作为父对象,如果父对象被销毁,其被销毁.构造和销毁的顺序 和c++一样,基类构造,子类构造,子类析构,基类析构,,但是在qt中,父类销毁了也就意味子类被销毁,soint main(){ Q... 阅读全文
posted @ 2018-08-06 08:52 专业路过 阅读(208) 评论(0) 推荐(0)
摘要: QTimerQTimer提供单词计时器和重复计时器slots void start([int msec]) void stop()sinals void timeout()虚函数 virtual void timerEvent(QTimerE... 阅读全文
posted @ 2018-08-06 08:12 专业路过 阅读(280) 评论(0) 推荐(0)