摘要: 1 #include<stdio.h> 2 #include<stdlib.h> 3 int main() 4 { 5 int ch=0; 6 int a=0; 7 FILE fp; 8 9 fp=fopen("data4.txt","r"); 10 11 if(fp==NULL){ 12 prin 阅读全文
posted @ 2024-06-24 10:44 202383310033孙卓航 阅读(47) 评论(0) 推荐(0)
摘要: 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 *pmax); int mai 阅读全文
posted @ 2024-05-26 13:01 202383310033孙卓航 阅读(39) 评论(0) 推荐(0)
摘要: include <stdio.h> include <string.h> define N 80 void swap_str(char s1[N], char s2[N]); void test1(); void test2(); int main() { printf("测试1: 用两个一维cha 阅读全文
posted @ 2024-05-19 15:01 202383310033孙卓航 阅读(34) 评论(0) 推荐(0)
摘要: 、 随机打印“hi, April~”十次! static可保留上次函数调用返回的值 include <stdio.h> long long func(int n); // 函数声明 int main() { int n; long long f; while (scanf("%d", &n) != 阅读全文
posted @ 2024-04-28 21:20 202383310033孙卓航 阅读(26) 评论(0) 推荐(0)
摘要: 练习一: line15是在1~65的范围内随机取数 这个程序生成202383310001~202383310065之间的学号 练习二: include <stdio.h> int main() { char color; while(scanf(" %c",&color)!=EOF){ switch 阅读全文
posted @ 2024-04-14 21:53 202383310033孙卓航 阅读(54) 评论(0) 推荐(0)
摘要: ![](https://img2024.cnblogs.com/blog/3405757/202403/3405757-20240317103159614-1835369859.png) ![](https://img2024.cnblogs.com/blog/3405757/202403/3405757-20240317103220492-124531883.png) ![](https://i 阅读全文
posted @ 2024-03-17 10:33 202383310033孙卓航 阅读(27) 评论(1) 推荐(0)