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

📄 fraction.h

📁 压缩包里有教材<<C++模式设计-基于QT4开源跨平台开发框架>>所有源码
💻 H
字号:
#ifndef FRACTION_H#define FRACTION_H//startclass Fraction { public:    Fraction(int n, int d) : m_Numer(n), m_Denom(d) {        ++ctors;    }    Fraction(const Fraction& other)     :  m_Numer(other.m_Numer), m_Denom(other.m_Denom) {        ++copies;    }    Fraction& operator=(const Fraction& other) {        m_Numer = other.m_Numer;        m_Denom = other.m_Denom;        ++assigns;        return *this;    }      Fraction multiply(Fraction f2) ;    static void report(); private:    int m_Numer, m_Denom;        static int assigns;    static int copies;    static int ctors;};//end#endif   

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -