摘要: task 1 Button.hpp 1 #pragma once 2 3 #include<iostream> 4 #include<string> 5 6 class Button { 7 public: 8 Button(const std::string& label_); 9 const s 阅读全文
posted @ 2025-11-26 00:10 璐Luzi 阅读(1) 评论(1) 推荐(0)
摘要: task 1 T.h 1 #pragma once 2 3 #include <string> 4 5 class T { 6 public: 7 T(int x = 0, int y = 0); 8 T(const T& t); 9 T(T&& t); 10 ~T(); 11 void adjus 阅读全文
posted @ 2025-10-27 12:55 璐Luzi 阅读(8) 评论(1) 推荐(0)
摘要: task 1.cpp 1 #include<iostream> 2 #include<string> 3 #include<vector> 4 #include<algorithm> 5 6 template<typename T> 7 void output(const T& c); 8 9 vo 阅读全文
posted @ 2025-10-13 01:12 璐Luzi 阅读(24) 评论(1) 推荐(0)
摘要: task 4 #include<stdio.h> #define N 3 void write(); int main() { write(); char ch; int i = 0, k = 0; FILE* fp; fp = fopen("data4.txt", "r"); if (!fp) { 阅读全文
posted @ 2024-12-28 16:00 璐Luzi 阅读(19) 评论(0) 推荐(0)
摘要: task 4 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; char name[80]; char author[80]; double sales_price; int sales_count; } Book; vo 阅读全文
posted @ 2024-12-21 13:46 璐Luzi 阅读(6) 评论(0) 推荐(0)
摘要: task1_1 #include <stdio.h> #define N 5 void input(int x[], int n); void output(int x[], int n); void find_min_max(int x[], int n, int *pmin, int *pmax 阅读全文
posted @ 2024-12-08 22:38 璐Luzi 阅读(7) 评论(0) 推荐(0)
摘要: test 1 #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; printf("sizeof(x) = %d\n", sizeof(x)); for (i = 0; i 阅读全文
posted @ 2024-11-10 01:01 璐Luzi 阅读(18) 评论(0) 推荐(0)
摘要: task 1 #include <stdio.h> char score_to_grade(int score); int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = score_to_gra 阅读全文
posted @ 2024-10-28 23:44 璐Luzi 阅读(10) 评论(0) 推荐(0)
摘要: test 1 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 397 #define N2 476 #define N3 21 int main() { int cnt; int rand 阅读全文
posted @ 2024-10-13 17:41 璐Luzi 阅读(18) 评论(0) 推荐(0)
摘要: 任务1 test1_1.c #include <stdio.h> int main() { printf(" o \n"); printf("<H>\n"); printf("I I\n"); return 0; } test1_2.c #include <stdio.h> int main() { 阅读全文
posted @ 2024-09-28 10:50 璐Luzi 阅读(15) 评论(0) 推荐(0)