摘要: publisher.hpp 1 #pragma once 2 3 #include <string> 4 5 // 发行/出版物类:Publisher (抽象类) 6 class Publisher { 7 public: 8 Publisher(const std::string &name_ = 阅读全文
posted @ 2025-12-15 21:19 zhj910 阅读(2) 评论(0) 推荐(0)
摘要: GradeCalc.hpp 1 #pragma once 2 3 #include <vector> 4 #include <array> 5 #include <string> 6 7 class GradeCalc { 8 public: 9 GradeCalc(const std::strin 阅读全文
posted @ 2025-12-02 21:24 zhj910 阅读(6) 评论(1) 推荐(0)
摘要: 实验1 task.cpp 1 #include "window.hpp" 2 #include <iostream> 3 4 void test() { 5 Window w("Demo"); 6 w.add_button("add"); 7 w.add_button("remove"); 8 w. 阅读全文
posted @ 2025-11-24 17:16 zhj910 阅读(13) 评论(1) 推荐(0)
摘要: task.cpp 1 #include"T.h" 2 #include<iostream> 3 void test_T(); 4 int main() { 5 std::cout << "test Class T:\n"; 6 test_T(); 7 std::cout << "\ntest fri 阅读全文
posted @ 2025-10-26 18:45 zhj910 阅读(8) 评论(1) 推荐(0)
摘要: https://chuna2.787528.xyz/zhj910 阅读全文
posted @ 2025-10-13 21:54 zhj910 阅读(7) 评论(0) 推荐(0)
摘要: #include<iostream> #include<string> #include<vector> #include<algorithm> template<typename T> void output(const T& c); void test1(); void test2(); voi 阅读全文
posted @ 2025-10-13 21:52 zhj910 阅读(13) 评论(1) 推荐(0)
摘要: 1 #include<stdio.h> 2 int main() { 3 FILE* fp; 4 fp = fopen("data4.txt", "r"); 5 char ch; 6 int a = 1, b = 0; 7 while ((ch = fgetc(fp)) != EOF) { 8 if 阅读全文
posted @ 2024-12-29 12:08 zhj910 阅读(7) 评论(0) 推荐(0)
摘要: #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售价 int sal 阅读全文
posted @ 2024-12-19 14:16 zhj910 阅读(4) 评论(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* pma 阅读全文
posted @ 2024-12-05 21:06 zhj910 阅读(11) 评论(0) 推荐(0)
摘要: 1 #include<stdio.h> 2 #define N 4 3 #define M 2 4 void test1() 5 { 6 int x[N] = { 1,9,8,4 }; 7 int i; 8 printf("sizeof(x)=%d\n", sizeof(x)); 9 for (i 阅读全文
posted @ 2024-11-10 15:09 zhj910 阅读(7) 评论(0) 推荐(0)