main.cpp
来自「我们一个小组」· C++ 代码 · 共 29 行
CPP
29 行
#include "BiHashTable.h"
#include <iostream>
#include <algorithm>
using namespace std ;
void main()
{
BiHashTable hash ;
int id ;
string str ;
while(cin>>str)
{
if( !hash.GetIDAndInsertByWord(str, id))
{
cout<<"Already exists"<<endl;
continue ;
}
hash.GetIDByWord(str, id) ;
cout << id << ":";
hash.GetWordByID(id, str) ;
cout << str ;
cout << endl;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?