摘要: 任务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 阅读(1) 评论(0) 推荐(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 阅读(9) 评论(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 阅读(13) 评论(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 阅读(16) 评论(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 阅读(12) 评论(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 阅读(19) 评论(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 阅读(18) 评论(0) 推荐(0)
摘要: 任务1 源代码 1 #include <stdio.h> 2 3 char score_to_grade(int score); // 函数声明 4 5 int main() { 6 int score; 7 char grade; 8 9 while(scanf("%d", &score) != 阅读全文
posted @ 2024-10-23 20:50 DKZ_Oliveira 阅读(21) 评论(0) 推荐(0)
摘要: 任务1 源代码 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 5 6 #define N1 397 7 #define N2 476 8 #define N3 21 9 10 int main 阅读全文
posted @ 2024-10-09 20:54 DKZ_Oliveira 阅读(8) 评论(0) 推荐(0)