摘要: 实验1: #pragma once #include <vector> #include <array> #include <string> class GradeCalc { public: GradeCalc(const std::string &cname); void input(int n 阅读全文
posted @ 2025-12-02 19:16 晚风吹动荷塘月 阅读(3) 评论(0) 推荐(0)
摘要: 任务一: #pragma once #pragma once #include <iostream> #include <vector> #include <algorithm> #include "button.h" // 窗口类 class Window { public: Window(con 阅读全文
posted @ 2025-11-24 22:32 晚风吹动荷塘月 阅读(7) 评论(1) 推荐(0)
摘要: #pragma once #include <string> class T { public: T(int x = 0, int y = 0); T(const T& t); T(T&& t); ~T(); void adjust(int ratio); void display() const; 阅读全文
posted @ 2025-10-24 21:06 晚风吹动荷塘月 阅读(18) 评论(1) 推荐(0)
摘要: 实验任务1: 问题一:reverse直接将s1反转,反转后结果存到s1本身,reverse_copy则是将s1反转后的结果存在s2,s1自身不变 问题二:rotate 算法通过将容器中 [first,middle) 区间的元素移到[middle,last)之后,实现元素循环移位 first:旋转范围 阅读全文
posted @ 2025-10-15 17:32 晚风吹动荷塘月 阅读(10) 评论(1) 推荐(0)