12 2024 档案

摘要:1. 实验任务1 验证性实验 知识点: 创建文件并输出内容: ofstream out("ans.txt"); //ofstream允许程序将数据写入文件; //out("ans.txt")创建一个名为ans.txt的文件,并将这个文件与名为out的ofstream对象关联起来 out << "He 阅读全文
posted @ 2024-12-17 21:07 Sunria 阅读(16) 评论(0) 推荐(0) 编辑
摘要:1. 实验任务1 验证性实验 知识点: 抽象类 // 发行/出版物类:Publisher (抽象类) class Publisher { public: Publisher(const string& s = ""); // 构造函数 //构造函数接受一个string类型的参数s,默认值为空字符串 阅读全文
posted @ 2024-12-03 17:52 Sunria 阅读(11) 评论(0) 推荐(0) 编辑

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