摘要: 任务1 源代码 contestant.hpp #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string name; // 姓 阅读全文
posted @ 2025-12-17 22:08 DKZ_Oliveira 阅读(7) 评论(1) 推荐(0)
摘要: 任务1 源代码 publisher.hpp #pragma once #include <string> // 发行/出版物类:Publisher (抽象类) class Publisher { public: Publisher(const std::string &name_ = ""); // 阅读全文
posted @ 2025-12-10 15:41 DKZ_Oliveira 阅读(11) 评论(1) 推荐(0)
摘要: 任务1 源代码 GradeClac.hpp #pragma once #include <vector> #include <array> #include <string> class GradeCalc { public: GradeCalc(const std::string &cname); 阅读全文
posted @ 2025-12-01 16:37 DKZ_Oliveira 阅读(10) 评论(1) 推荐(0)
摘要: 任务1 源代码 button.hpp #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label_); const std::string& get 阅读全文
posted @ 2025-11-23 16:02 DKZ_Oliveira 阅读(13) 评论(1) 推荐(0)
摘要: 实验任务1 源代码 task1.cpp #include "T.h" #include <iostream> void test_T(); int main() { std::cout << "test Class T: \n"; test_T(); std::cout << "\ntest fri 阅读全文
posted @ 2025-10-25 15:41 DKZ_Oliveira 阅读(10) 评论(1) 推荐(0)
摘要: 实验1 源代码 #include <iostream> #include <string> #include <vector> #include <algorithm> template <typename T> void output(const T &c); void test1(); void 阅读全文
posted @ 2025-10-13 20:16 DKZ_Oliveira 阅读(19) 评论(2) 推荐(0)
摘要: 任务4 源代码 1 #include <stdio.h> 2 3 void func1(); 4 void func2(); 5 6 int main() 7 { 8 printf("data4.txt统计结果\n"); 9 func1(); 10 func2(); 11 return 0; 12 阅读全文
posted @ 2024-12-25 22:03 DKZ_Oliveira 阅读(22) 评论(0) 推荐(0)
摘要: 任务4 源代码 1 #include <stdio.h> 2 #define N 10 3 4 typedef struct { 5 char isbn[20]; // isbn号 6 char name[80]; // 书名 7 char author[80]; // 作者 8 double sa 阅读全文
posted @ 2024-12-17 16:26 DKZ_Oliveira 阅读(17) 评论(0) 推荐(0)
摘要: 任务1 task1_1 源代码 1 #include <stdio.h> 2 #define N 5 3 4 void input(int x[], int n); 5 void output(int x[], int n); 6 void find_min_max(int x[], int n, 阅读全文
posted @ 2024-12-02 17:41 DKZ_Oliveira 阅读(26) 评论(0) 推荐(0)
摘要: 任务1 源代码 1 #include <stdio.h> 2 #define N 4 3 #define M 2 4 5 void test1() { 6 int x[N] = {1, 9, 8, 4}; 7 int i; 8 9 // 输出数组x占用的内存字节数 10 printf("sizeof 阅读全文
posted @ 2024-11-05 20:44 DKZ_Oliveira 阅读(26) 评论(0) 推荐(0)