摘要: 实验任务4 task4.c源码 点击查看代码 #include<stdio.h> #include<stdlib.h> int main(){ FILE *fp; int count_line=0; int count_str=0; char ch; fp=fopen("D:\\data4.txt" 阅读全文
posted @ 2025-06-08 21:25 High_Auditorium 阅读(15) 评论(0) 推荐(0)
摘要: 实验任务4 task4.c源代码 点击查看代码 #include <stdio.h> #define N 10 #include<stdlib.h> typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[8 阅读全文
posted @ 2025-06-02 22:46 High_Auditorium 阅读(20) 评论(0) 推荐(0)
摘要: 实验任务1 task1_1.c源代码 1 #include <stdio.h> 2 #define N 5 3 #include<stdlib.h> 4 5 void input(int x[], int n); 6 void output(int x[], int n); 7 void find_ 阅读全文
posted @ 2025-05-16 18:01 High_Auditorium 阅读(24) 评论(0) 推荐(0)
摘要: 实验4_C语言数组应用编程 实验任务1 task1.c源代码 点击查看代码 #include <stdio.h> #include<stdlib.h> #define N 4 #define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; // 阅读全文
posted @ 2025-04-20 23:29 High_Auditorium 阅读(28) 评论(0) 推荐(0)
摘要: 实验3_C语言函数应用编程 实验任务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( 阅读全文
posted @ 2025-04-07 16:42 High_Auditorium 阅读(40) 评论(0) 推荐(0)
摘要: 实验任务1 task1.c源代码: 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 5 #define N 5 6 int main() 7 { 8 int number; 9 int i; 10 11 srand(time 阅读全文
posted @ 2025-03-20 20:20 High_Auditorium 阅读(59) 评论(0) 推荐(0)
摘要: 实验1(用的markdown编辑器没法用line标,下次用HTML的) 实验任务1 task1-1.c 源代码 #include <stdio.h> #include<stdlib.h> int main1() { printf(" O \n"); printf("<H>\n"); printf(" 阅读全文
posted @ 2025-03-08 20:25 High_Auditorium 阅读(58) 评论(0) 推荐(0)