会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zzr621
博客园
首页
新随笔
联系
订阅
管理
2024年6月23日
实验 7
摘要: 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)
2024年6月8日
实验 6
摘要: 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)
2024年5月26日
实验5
摘要: 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)
2024年5月19日
实验4
摘要: 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)
2024年4月28日
实验三
摘要: 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)
2024年4月14日
实验2
摘要: 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)
2
摘要: ` #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)
1
摘要: 点击查看代码 #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)
2024年3月17日
实验一
摘要: 1 ` include<stdio.h> int main() { printf(" 0 0\n"); printf(" \n"); printf("I I I I\n"); return 0; } 
评论(0)
推荐(0)
公告