会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
cqw06
博客园
首页
新随笔
联系
订阅
管理
2024年12月30日
实验7
摘要: task4 1 #include<stdio.h> 2 int main(){ 3 FILE *fp; 4 fp=fopen("data4.txt","r"); 5 if(fp==NULL){ 6 return 0; 7 } 8 int line=1,number=0; 9 char c; 10 c
阅读全文
posted @ 2024-12-30 00:56 2024-
阅读(13)
评论(0)
推荐(0)
2024年12月22日
实验6
摘要: text 4 1 #include <stdio.h> 2 #define N 10 3 typedef struct { 4 char isbn[20]; // isbn号 5 char name[80]; // 书名 6 char author[80]; // 作者 7 double sales
阅读全文
posted @ 2024-12-22 23:48 2024-
阅读(16)
评论(0)
推荐(0)
2024年12月8日
实验5
摘要: 1 #include <stdio.h> 2 #define N 5 3 void input(int x[], int n); 4 void output(int x[], int n); 5 void find_min_max(int x[], int n, int *pmin, int *pm
阅读全文
posted @ 2024-12-08 23:57 2024-
阅读(16)
评论(0)
推荐(0)
2024年11月10日
实验4
摘要: test1 1 #include <stdio.h> 2 #define N 4 3 #define M 2 4 void test1() { 5 int x[N] = {1, 9, 8, 4}; 6 int i; 7 // 输出数组x占用的内存字节数 8 printf("sizeof(x) = %
阅读全文
posted @ 2024-11-10 22:12 2024-
阅读(36)
评论(0)
推荐(0)
2024年10月26日
实验3
摘要: 1 #include <stdio.h> 2 char score_to_grade(int score); 3 int main(){ 4 int score; 5 char grade; 6 while(scanf("%d",&score)!=EOF){ 7 grade=score_to_gra
阅读全文
posted @ 2024-10-26 00:25 2024-
阅读(41)
评论(0)
推荐(0)
2024年10月15日
实验二
摘要: 1 #include<stdio.h> 2 #include<math.h> 3 int main() { 4 double a, b, c; 5 double delta, p1, p2; 6 while(scanf("%lf%lf%lf", &a, &b, &c) != EOF) { 7 if(
阅读全文
posted @ 2024-10-15 00:43 2024-
阅读(30)
评论(0)
推荐(0)
公告