随笔分类 -  C++

摘要://Fraction.h #pragma once #include <iostream> #include <string> using namespace std; int& __gcd(int&, int&); class Fraction { public: explicit Fractio 阅读全文
posted @ 2023-02-27 00:38 karinto 阅读(36) 评论(0) 推荐(0) 编辑
摘要://string.h #pragma once class String { public: String(const char* cstr = 0); String(const String& str); ~String(); String& operator = (const String& s 阅读全文
posted @ 2023-02-22 02:02 karinto 阅读(16) 评论(0) 推荐(0) 编辑
摘要://complex.h #ifndef __MYCOMPLEX_H__ #define __MYCOMPLEX_H__ class complex; complex& __doapl(complex*, const complex&); //友元可以在类外声明 complex& __doami(co 阅读全文
posted @ 2023-02-21 11:17 karinto 阅读(36) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示