ddi.h
来自「有重叠的复杂网络结构划分算法」· C头文件 代码 · 共 50 行
H
50 行
template <typename type>class ddi { public : ddi(const double &a, const double &b) : first(a), second(b) {}; ddi(const double &a, const double &b, const type &sq) : first(a), second(b), third(sq) {}; ~ddi(){}; friend ostream& operator << (ostream& output, const ddi &p) { output<<endl<<p.first<<" "<<p.second<<" "<<p.third; return output; }; friend bool operator < (const ddi &a, const ddi &b) { if (a.first<b.first) return true; else if (a.first==b.first && a.second<b.second) return true; else return false; }; friend bool operator == (const ddi &a, const ddi &b) { return (a.first==b.first && a.second==b.second); }; double first; double second; type third; };
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?