main.cpp
来自「C++STL课本中的源程序代码己经验证过了可以通过编译和运行。」· C++ 代码 · 共 20 行
CPP
20 行
#include <hash_set>
#include <iostream>
int main(void){
using namespace std;
hash_set<int> hs;
hs.insert(31);
hs.insert(193);
hs.insert(23);
//遍历打印哈希集合元素
hash_set<int>::iterator i,iend;
iend = hs.end();
for(i=hs.begin(); i!=iend; i++)
cout << *i << ' ';
cout << endl;
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?