C++
岚-Arashi
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C++ Map容器通过value找key
//通过value找 key for(std::map<int,char>::iterator it = aMap.begin();it!=aMap.end();it++) { if(it->second==value) cout<<"通过value: "<<value<<" 找到的key:"<<it->first<<endl; } }//通过key找value if(aMap.c.原创 2020-06-19 17:01:02 · 2801 阅读 · 0 评论 -
C++ 将一个数倒置输出
例如:输入12345,程序输出54321#include <iostream>#include <stdio.h>using namespace std;/* run this program using the console pauser or add your own getch, system("pause") or input loop */Reversing(int num){ int i; cout << "翻转后的数为:"; do原创 2020-05-26 14:21:04 · 4616 阅读 · 0 评论
分享