![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
一枚想好好学习的小鬼
这个作者很懒,什么都没留下…
展开
-
常量指正和指针常量的区别
常量指正和指针常量的区别常量指针指针常量导入常量指针// An highlighted block const char *name1="John";//常量指针, char s[]="abc"; name1=s; cout<<name1<<endl;// 输出abc,name1存放的地址可以改变指针常量 const翻译 2018-10-29 22:46:27 · 107 阅读 · 0 评论 -
map和 unorder_map的遍历
map<int,int> record; map<int,int> ::iterator it;// it=record.begin(); while(it != record.end()) { cout<<"first->:"<<原创 2018-12-09 16:35:05 · 4365 阅读 · 0 评论