摘要: 实验任务4 task4.c 代码 #define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #include<stdlib.h> int count(); int countChars(); int main() { int linecount = 0; 阅读全文
posted @ 2025-06-09 13:40 理塘小马守护者丁真 阅读(3) 评论(0) 推荐(0)
摘要: 实验任务4 task4.c 代码 #include <stdio.h> #include <stdlib.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 阅读全文
posted @ 2025-06-02 00:08 理塘小马守护者丁真 阅读(9) 评论(0) 推荐(0)
摘要: 实验任务1 task1_1.c 代码 #include <stdio.h> #include<stdlib.h> #define N 5 void input(int x[], int n); void output(int x[], int n); void find_min_max(int x[ 阅读全文
posted @ 2025-05-18 22:50 理塘小马守护者丁真 阅读(5) 评论(0) 推荐(0)
摘要: 实验任务1 代码 #include <stdio.h> #include <stdlib.h> #define N 4 #define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; printf("sizeof(x) = %d\n", size 阅读全文
posted @ 2025-04-20 23:21 理塘小马守护者丁真 阅读(2) 评论(0) 推荐(0)
摘要: 实验任务1 代码 #include char score_to_grade( int score); int main() { int score; char grade; while ( scanf ( "%d" , &score) != EOF) { grade = score_to_grade 阅读全文
posted @ 2025-04-05 23:00 理塘小马守护者丁真 阅读(8) 评论(0) 推荐(0)
摘要: 实验任务1 task1.c 代码 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main(){ int number; int i; srand(time(0)); for(i = 0;i<N; ++ 阅读全文
posted @ 2025-03-24 01:03 理塘小马守护者丁真 阅读(7) 评论(0) 推荐(0)
摘要: 实验任务1 task1_1.c 代码 #include <stdio.h> #include <stdlib.h> int main() { printf(" 0 \n"); printf("<H>\n"); printf("I I\n"); printf(" 0 \n"); printf("<H> 阅读全文
posted @ 2025-03-08 16:14 理塘小马守护者丁真 阅读(4) 评论(0) 推荐(0)