16-02-02-2.cpp

来自「more efftive 代码」· C++ 代码 · 共 15 行

CPP
15
字号
#include <iostream>#include <map>#include <string>using namespace std;int main() {  map<string, int> M;    M.insert(make_pair("A", 17));  M.insert(make_pair("B", 74));    if (M.find("Z") == M.end())    cout << "Not found: Z" << endl;                   // 

⌨️ 快捷键说明

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