【正文】
對(duì)應(yīng)的函數(shù)來實(shí)現(xiàn)。(1) 函數(shù)jia()實(shí)現(xiàn)分?jǐn)?shù)加法運(yùn)算。 (2)函數(shù)jian()實(shí)現(xiàn)分?jǐn)?shù)減法運(yùn)算。 (3)函數(shù)cheng()實(shí)現(xiàn)分?jǐn)?shù)乘法運(yùn)算。 (4)函數(shù)chu()實(shí)現(xiàn)分?jǐn)?shù)除法運(yùn)算。(5)函數(shù)shuchu()實(shí)現(xiàn)分?jǐn)?shù)的輸出和化簡(jiǎn)。 四、程序源代碼// : Defines the entry point for the console application.//include include include int main(int argc, char* argv[]){ fenshu aa。 return 0。}// : interface for the zhengshu class.////////////////////////////////////////////////////////////////////////if !defined(AFX_ZHENGSHU_H__254BB13E_9F27_4785_BDEE_637C9445F651__INCLUDED_)define AFX_ZHENGSHU_H__254BB13E_9F27_4785_BDEE_637C9445F651__INCLUDED_if _MSC_VER 1000pragma onceendif // _MSC_VER 1000class zhengshu {public: zhengshu()。 virtual ~zhengshu()。}。endif // !defined(AFX_ZHENGSHU_H__254BB13E_9F27_4785_BDEE_637C9445F651__INCLUDED_)// : implementation of the zhengshu class.////////////////////////////////////////////////////////////////////