02 2023 档案
摘要://Fraction.h #pragma once #include <iostream> #include <string> using namespace std; int& __gcd(int&, int&); class Fraction { public: explicit Fractio
阅读全文
摘要://string.h #pragma once class String { public: String(const char* cstr = 0); String(const String& str); ~String(); String& operator = (const String& s
阅读全文
摘要://complex.h #ifndef __MYCOMPLEX_H__ #define __MYCOMPLEX_H__ class complex; complex& __doapl(complex*, const complex&); //友元可以在类外声明 complex& __doami(co
阅读全文