10 2023 档案
摘要:参考:https://www.cnblogs.com/schaepher/p/5561193.html#config_user 初始化仓库 git init 连接github git config --global user.name "dctwan15" git config --global u
阅读全文
摘要:stat函数 头文件:#include <sys/stat.h> int stat(const char* restrict pathname,struct stat* restrict buf); 第一个参数pathname:文件名,需要获取该文件的信息 第二个参数buf:stat函数将pathn
阅读全文
摘要:目录运算符重载继承多态抽象基类 运算符重载 重新定义+-*/操作,对同类对象使用,以时间类Time为例子进行理解 Time.h class Time{ private: int hour, minute; public: Time(); Time(int h, int m); void show_t
阅读全文
摘要:目录类声明成员函数构造函数和析构函数文件组织this指针 类声明 class ClassName{ private: // data member declarations; public: // member funtion declarations; }; 成员函数 一般定义成员函数的方式是在类
阅读全文