⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 11-01-02-2.cpp

📁 more efftive 代码
💻 CPP
字号:
#include <iostream>#include <vector>#include <algorithm>#include <functional>using namespace std;int main(){  typedef pair<int, char*> Pair;    vector<Pair> V;  V.push_back(Pair(3, "A"));  V.push_back(Pair(7, "B"));  V.push_back(Pair(2, "C"));  V.push_back(Pair(0, "D"));  V.push_back(Pair(6, "E"));    vector<Pair>::iterator p =    find_if(V.begin(), V.end(),            compose1(bind2nd(equal_to<int>(), 2), select1st<Pair>()));  cout << "Found: "       << "<" << (*p).first << "," << (*p).second << ">"       << endl;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -