摘要: 任务一: 1 #pragma once 2 #include <iomanip> 3 #include <iostream> 4 #include <string> 5 struct Contestant { 6 long id; // 学号 7 std::string name; // 姓名 8 阅读全文
posted @ 2025-12-23 18:10 Little_Zcy 阅读(3) 评论(0) 推荐(0)
摘要: 任务一: #pragma once #include <string> // 发行/出版物类:Publisher (抽象类) class Publisher { public: Publisher(const std::string &name_ = ""); // 构造函数 virtual ~Pu 阅读全文
posted @ 2025-12-15 18:59 Little_Zcy 阅读(6) 评论(1) 推荐(0)
摘要: 任务一: GradeCalc.hpp #pragma once #include <vector> #include <array> #include <string> class GradeCalc { public: GradeCalc(const std::string& cname); vo 阅读全文
posted @ 2025-12-02 17:00 Little_Zcy 阅读(8) 评论(1) 推荐(0)
摘要: 任务一 1 #pragma once 2 #include <iostream> 3 #include <string> 4 class Button { 5 public: 6 Button(const std::string& label_); 7 const std::string& get_ 阅读全文
posted @ 2025-11-25 21:50 Little_Zcy 阅读(4) 评论(1) 推荐(0)
摘要: 任务一: T.h 1 #pragma once 2 #include <string> 3 // 类T: 声明 4 class T { 5 // 对象属性、方法 6 public: 7 T(int x = 0, int y = 0); // 普通构造函数 8 T(const T &t); // 复制 阅读全文
posted @ 2025-10-28 21:58 Little_Zcy 阅读(9) 评论(1) 推荐(0)
摘要: https://home.cnblogs.com/LittleZcy 阅读全文
posted @ 2025-10-16 23:37 Little_Zcy 阅读(11) 评论(0) 推荐(0)
摘要: 任务一: 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <algorithm> 5 6 template<typename T> 7 void output(const T& c); 8 void t 阅读全文
posted @ 2025-10-16 23:30 Little_Zcy 阅读(11) 评论(1) 推荐(0)
摘要: 任务四: 1 #include<stdio.h> 2 #include<stdlib.h> 3 4 void write(); 5 6 void read(int *x,int *y); 7 int main() { 8 int x = 0, y = 0; 9 write(); 10 read( & 阅读全文
posted @ 2024-12-24 21:18 Little_Zcy 阅读(21) 评论(0) 推荐(0)
摘要: 任务四 #include <stdio.h> #include<stdlib.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sal 阅读全文
posted @ 2024-12-16 14:54 Little_Zcy 阅读(16) 评论(0) 推荐(0)
摘要: 任务一 1 #include <stdio.h> 2 #define N 5 3 void input(int x[], int n); 4 void output(int x[], int n); 5 void find_min_max(int x[], int n, int *pmin, int 阅读全文
posted @ 2024-12-02 14:08 Little_Zcy 阅读(22) 评论(0) 推荐(0)