?? ddi.h
字號:
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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -