摘要: 实验任务4 task4.c源代码: 1 #include<stdio.h> 2 #include<stdlib.h> 3 #define N 80 4 int main(){ 5 int i=0,j; 6 int linecount=0; 7 int charcount=0; 8 char info 阅读全文
posted @ 2025-05-30 18:08 gyn1111 阅读(39) 评论(0) 推荐(0)
摘要: 实验任务4 task4.c程序源代码: 1 #include <stdio.h> 2 #include<stdlib.h> 3 #define N 10 4 5 typedef struct { 6 char isbn[20]; // isbn号 7 char name[80]; // 书名 8 c 阅读全文
posted @ 2025-05-28 15:21 gyn1111 阅读(8) 评论(0) 推荐(0)
摘要: 实验任务1 task1_1.c程序源码: 1 #include <stdio.h> 2 #include<stdlib.h> 3 #define N 5 4 5 void input(int x[], int n); 6 void output(int x[], int n); 7 void fin 阅读全文
posted @ 2025-05-14 23:41 gyn1111 阅读(15) 评论(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", & 阅读全文
posted @ 2025-04-03 23:07 gyn1111 阅读(11) 评论(0) 推荐(0)
摘要: 实验任务1 task1.c源代码: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 5 6 7 int main() { 8 int number; 9 int i; 10 11 srand(t 阅读全文
posted @ 2025-03-18 22:11 gyn1111 阅读(10) 评论(0) 推荐(0)
摘要: 实验任务1 task1_1.c源代码: 1 #include<stdio.h> 2 #include<stdlib.h> 3 int main() 4 { 5 printf(" O\n"); 6 printf("<H>\n"); 7 printf("I I\n"); 8 printf(" O\n") 阅读全文
posted @ 2025-03-03 21:27 gyn1111 阅读(15) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示