📄 identif.h
字号:
// k2/identify/identif.h#ifndef IDENTIF_H#define IDENTIF_H#include<iostream>#include<string>class Identifier { public: const std::string& toString() const { return theIdentifier;} friend std::istream& operator>>(std::istream&, Identifier&); private: std::string theIdentifier;};inline bool operator==(const Identifier& N1, const Identifier& N2) { return N1.toString() == N2.toString();}inline bool operator<(const Identifier& N1, const Identifier& N2) { return N1.toString() < N2.toString();}std::ostream& operator<<(std::ostream&, const Identifier&);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -