摘要: test 4 代码: #define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<stdlib.h> int count(); int countChars(); int main() { int linecount = 0; int c 阅读全文
posted @ 2025-06-08 15:55 邹馨伦 阅读(24) 评论(0) 推荐(0)
摘要: test 4 代码: #include <stdio.h> #include<stdlib.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 dou 阅读全文
posted @ 2025-06-02 15:07 邹馨伦 阅读(23) 评论(0) 推荐(0)
摘要: test 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 *p 阅读全文
posted @ 2025-05-15 22:42 邹馨伦 阅读(34) 评论(0) 推荐(0)
摘要: test 1 代码: #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; // 输出数组x占用的内存字节数 printf("sizeof(x) = %d\n", sizeo 阅读全文
posted @ 2025-04-20 20:33 邹馨伦 阅读(23) 评论(0) 推荐(0)
摘要: test 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 @ 2025-04-06 08:17 邹馨伦 阅读(30) 评论(0) 推荐(0)
摘要: 实验一: 代码: #include<stdlib.h> #include<time.h> #define N 5 int main() { int number; int i; srand(time(0)); for(i=0;i<N;++i){ number=rand()%100+1; printf 阅读全文
posted @ 2025-03-18 22:21 邹馨伦 阅读(37) 评论(0) 推荐(0)
摘要: test.1 代码: #include<stdio.h> int main() { printf("0 \n"); printf("<H>\n"); printf("I I\n"); return 0; } 运行截图: test.2 代码: #include<stdio.h> #include<st 阅读全文
posted @ 2025-03-09 14:09 邹馨伦 阅读(31) 评论(0) 推荐(0)