摘要: task 1 点击查看代码 // 将图书信息写入文本文件data1.txt // 再从文件中读取图书信息,打印输出到屏幕上,并显示行号 #include <stdio.h> #include <stdlib.h> #define N 80 #define M 100 typedef struct { 阅读全文
posted @ 2024-06-23 19:03 zzr621 阅读(19) 评论(0) 推荐(0)
摘要: task 1 点击查看代码 #include <stdio.h> #include <string.h> #define N 3 // 运行程序输入测试时,可以把这个数组改小一些输入测试 typedef struct student { int id; // 学号 char name[20]; // 阅读全文
posted @ 2024-06-08 13:48 zzr621 阅读(27) 评论(0) 推荐(0)
摘要: task 1 点击查看代码 #include <stdio.h> #define N 5 #include<stdlib.h> void input(int x[], int n); void output(int x[], int n); void find_min_max(int x[], in 阅读全文
posted @ 2024-05-26 16:23 zzr621 阅读(17) 评论(0) 推荐(0)
摘要: task 1 点击查看代码 #include <stdio.h> #include<stdlib.h> #define N 4 void test1() { int a[N] = {1, 9, 8, 4}; int i; // 输出数组a占用的内存字节数 printf("sizeof(a) = %d 阅读全文
posted @ 2024-05-19 20:45 zzr621 阅读(22) 评论(0) 推荐(0)
摘要: task 1 点击查看代码 #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void print_text(int line, int col, char text[ 阅读全文
posted @ 2024-04-28 17:25 zzr621 阅读(7) 评论(0) 推荐(0)
摘要: task 1 点击查看代码 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int number; int i; srand( time(0) ); // 以当前系统时间作为随机种子 阅读全文
posted @ 2024-04-14 20:15 zzr621 阅读(12) 评论(0) 推荐(0)
摘要: ` #include<stdio.h> include<stdlib.h> include<math.h> int main() { double s,S; int a,b,c; while(scanf("%d%d%d",&a,&b,&c)!=EOF) { s=(a+b+c)/2.0; S=sqrt 阅读全文
posted @ 2024-04-14 16:46 zzr621 阅读(9) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<stdio.h> #include<stdlib.h> #include<math.h> int main() { double s,S; int a,b,c; while(scanf("%d%d%d",&a,&b,&c)!=EOF) { s=(a+b+c)/2.0; 阅读全文
posted @ 2024-04-14 16:45 zzr621 阅读(34) 评论(0) 推荐(0)
摘要: 1 ` include<stdio.h> int main() { printf(" 0 0\n"); printf(" \n"); printf("I I I I\n"); return 0; } ![](https://img2024.cnblogs.com/blog/3409831/20240 阅读全文
posted @ 2024-03-17 20:48 zzr621 阅读(26) 评论(0) 推荐(0)