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

📄 identif.h

📁 Design Componenet With C++ STL配套书源代码
💻 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 + -