会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
langgu
博客园
首页
新随笔
联系
订阅
管理
2024年12月29日
实验七
摘要: task.4 #include "stdio.h" int main() { FILE *fp; fp=fopen("D:\\快捷访问\\下载\\实验7数据文件及部分代码\\实验7数据文件及部分代码\\data4.txt","r"); int i=1,c=0; char ch; if(!fp) {
阅读全文
posted @ 2024-12-29 18:17 凌司书
阅读(18)
评论(0)
推荐(0)
2024年12月19日
实验6
摘要: task.4 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; char name[80]; char author[80]; double sales_price; int sales_count; } Book; vo
阅读全文
posted @ 2024-12-19 15:30 凌司书
阅读(18)
评论(0)
推荐(0)
2024年12月8日
实验五
摘要: task.1 #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);
阅读全文
posted @ 2024-12-08 15:07 凌司书
阅读(18)
评论(0)
推荐(0)
2024年11月9日
实验四
摘要: task.1 #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; printf("sizeof(x) = %d\n",sizeof(x)); for(i = 0;i<N;+
阅读全文
posted @ 2024-11-09 21:33 凌司书
阅读(23)
评论(0)
推荐(0)
2024年10月26日
实验3
摘要: task.1 #include <stdio.h> char score_to_grade(int score); int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = score_to_gra
阅读全文
posted @ 2024-10-26 19:14 凌司书
阅读(15)
评论(0)
推荐(0)
2024年10月12日
实验2
摘要: task.1 #include <stdio.h> #include <stdio.h> #include <time.h> #define N 5 #define N1 397 #define N2 476 #define N3 21 int main() { int cnt; int rando
阅读全文
posted @ 2024-10-12 19:03 凌司书
阅读(22)
评论(0)
推荐(0)
2024年9月27日
实验1
摘要: 任务1 1.1 #include<stdio.h> int main() { int i=1; while(i<3) {printf(" o \n"); printf("<H>\n"); printf("I I\n"); i++; } return 0; } 1.2 #include<stdio.h
阅读全文
posted @ 2024-09-27 18:33 凌司书
阅读(30)
评论(0)
推荐(0)
公告