会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
u3707979
博客园
首页
新随笔
联系
订阅
管理
2025年12月27日
实验7
摘要: 实验任务4 #include<stdio.h> #define N 1000 int main(){ FILE *fp; fp=fopen("data4.txt","r"); if(!fp){ perror(""); return 0; } int line=0,count=0; char ch[N
阅读全文
posted @ 2025-12-27 22:25 tensiontension
阅读(10)
评论(1)
推荐(0)
2025年12月21日
实验6
摘要: 实验任务4 #include<stdio.h> #define N 10 typedef struct{ char isbn[20]; char name[80]; char author[20]; double sales_price; int sales_count; }Book; void o
阅读全文
posted @ 2025-12-21 00:51 tensiontension
阅读(15)
评论(1)
推荐(0)
2025年12月7日
实验5
摘要: 实验任务1 task1.c #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 @ 2025-12-07 01:56 tensiontension
阅读(25)
评论(1)
推荐(0)
2025年11月11日
实验4
摘要: 实验任务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;++i) printf("
阅读全文
posted @ 2025-11-11 21:09 tensiontension
阅读(12)
评论(1)
推荐(0)
2025年10月24日
实验3
摘要: 实验任务1 #include<stdio.h> char score_to_grade(int score); int main() { int score; char grade; while(scanf("%d",&score)!=EOF){ grade=score_to_grade(score
阅读全文
posted @ 2025-10-24 15:03 tensiontension
阅读(14)
评论(1)
推荐(0)
2025年10月14日
实验2
摘要: 实验任务1 #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 #define N1 80 #define N2 35 int main() { int cnt; int random_major,random_no;
阅读全文
posted @ 2025-10-14 12:52 tensiontension
阅读(9)
评论(1)
推荐(0)
2025年9月28日
实验1
摘要: 实验任务1 task1.1c #include<stdio.h> int main() { printf(" o \n"); printf("<H>\n"); printf("I I\n"); printf(" o \n"); printf("<H>\n"); printf("I I\n"); re
阅读全文
posted @ 2025-09-28 12:49 tensiontension
阅读(24)
评论(1)
推荐(0)
公告