-
高级语言程序设计课程第六次个人作业
这个作业属于:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj 这个作业的要求:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj/homework/16752 学号:0102600114 姓名:吴明桓 —— -
高级语言程序设计第六次作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj/ 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/2026gjyycxsj/homework/16752 学号:0102600232 姓名 -
实验三
实验3 类和对象_基础编程2 一、实验目的 理解类的组合(has-a)关系,掌握组合类的定义与使用方法。 区分深拷贝与浅拷贝,掌握动态内存管理场景下拷贝构造函数、析构函数、赋值函数的编写。 熟练使用std::vector、std::string容器,掌握迭代器与常用STL算法。 运用面向对象思想设计 -
实验3
任务1 window.hpp源代码 点击查看源代码 #pragma once #include "button.hpp" #include <iostream> #include <vector> #include <algorithm> // 窗口类 class Window{ public: W -
实验3
任务1 源代码 button.hpp 点击查看代码 #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label); const std::strin -
实验3
任务1 1.源代码 #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label); const std::string& get_label() c -
实验三
实验3 类的组合与深拷贝 1. 实验任务1 1.1 源代码如下 button.hpp #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label); -
实验3
实验结论 1. 实验任务1 源代码 button.hpp #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label); const std::st -
实验3
任务1: 源代码: button.hpp #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label); const std::string& ge -
高级程序语言第六次作业
 ; const std::string& get_ -
实验3
实验任务1 问题1 两者是组合关系,在Window类的声明中,直接声明这个类包含了一个button型的vector数组,且这个button类的生命周期与Window类相同。 问题2 1.优点是可以直接外部调用,不需要依靠公有函数。 风险是会破坏封装性,导致泄露或者外部误调用。 2.用户需要主动使用的 -
高级语言程序设计第六次作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj/homework/16747 1. 2. 3. 4. 5. 6. -
实验3
实验任务1 源码 Button.hpp #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label); const std::string& get -
实验3
task1 源代码 button.hpp #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label); const std::string& ge -
实验3
task1 源代码 button.hpp #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label); const std::string& ge -
实验三
任务1 代码 button.hpp #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label); const std::string& get_l -
实验3 类和对象_基础编程2
面向对象程序设计 实验3 实验任务一 源码以及运行测试截图 button.hpp #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label); c -
实验三
实验任务一 源代码: button.hpp #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label); const std::string& g -
实验3
实验任务1 源代码 button.hpp 点击查看代码 #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label); const std::str