C/C++
爱爬山的IT小小鸟
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
打印函数调用的堆栈信息
有些时候为了便于调试,我们需要记录函数调用的堆栈信息。为此,封装了一个类StackDumper,在相应的函数中调用该类的成员函数即可。stack_dumper.h #ifndef STACK_DUMPER_H #define STACK_DUMPER_H#ifdef _WIN32 #include <windows.h> #include <dbghelp.h> #include <string原创 2016-07-02 23:59:01 · 4014 阅读 · 1 评论 -
map的4种常见的插入元素的方式及区别
#include using namespace std; #include #include map mp; void showMap() { cout<<"\n遍历结果:"<<endl; for(map::iterator iter = mp.begin();iter != mp.end(); ++iter) { coutfirstsecond<<endl; } co原创 2015-08-16 21:56:26 · 6893 阅读 · 0 评论
分享