摘要: 实验任务1 实验任务2 实验任务3 实验任务4: task4.c源代码: 1 #include<stdio.h> 2 #include<string.h> 3 4 int main(){ 5 int lines = 0; 6 int characters = 0; 7 char ch; 8 char 阅读全文
posted @ 2024-12-30 00:42 温姒妤 阅读(12) 评论(0) 推荐(0)
摘要: 实验任务1 实验任务2 实验任务3 实验任务4: task4.c源代码: 1 #include <stdio.h> 2 #define N 10 3 typedef struct { 4 char isbn[20]; // isbn号 5 char name[80]; // 书名 6 char au 阅读全文
posted @ 2024-12-22 22:13 温姒妤 阅读(18) 评论(0) 推荐(0)
摘要: 实验任务1: task1_1.c源代码: 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,i 阅读全文
posted @ 2024-12-03 21:08 温姒妤 阅读(28) 评论(0) 推荐(0)
摘要: 实验任务1: task1.c源代码: 1 #include <stdio.h> 2 #define N 4 3 #define M 2 4 void test1() { 5 int x[N] = {1,9,8,4}; 6 int i; 7 printf("sizeof(x)=%d\n",sizeof 阅读全文
posted @ 2024-11-11 00:01 温姒妤 阅读(25) 评论(0) 推荐(0)
摘要: 实验任务1: task1.c源代码: 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)!=E 阅读全文
posted @ 2024-10-27 21:03 温姒妤 阅读(12) 评论(0) 推荐(0)
摘要: 实验任务1: task1.c源代码: 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 阅读全文
posted @ 2024-10-11 15:46 温姒妤 阅读(17) 评论(0) 推荐(0)
摘要: 实验任务1: 源代码task1_1.c: 1 #include<stdio.h> 2 int main() 3 { 4 printf(" o \n"); 5 printf("<H>\n"); 6 printf("I I\n"); 7 printf(" o \n"); 8 printf("<H>\n" 阅读全文
posted @ 2024-09-27 22:48 温姒妤 阅读(18) 评论(0) 推荐(0)