会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xia2005
博客园
首页
新随笔
联系
订阅
管理
2024年12月30日
实验七
摘要: task4 #include <stdio.h> #include <stdlib.h> int main() { FILE *fp; char ch; int lines = 0, characters = 0; fp = fopen("d:\\xia01\\Documents\\data4qwe
阅读全文
posted @ 2024-12-30 18:36 夏庆兴
阅读(2)
评论(0)
推荐(0)
2024年12月22日
实验六
摘要: task4 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售价 i
阅读全文
posted @ 2024-12-22 17:11 夏庆兴
阅读(6)
评论(0)
推荐(0)
2024年12月8日
实验5
摘要: 实验一 代码: #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 19:58 夏庆兴
阅读(5)
评论(0)
推荐(0)
2024年11月10日
实验四
摘要: 实验1 #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; // 输出数组x占用的内存字节数 printf("sizeof(x) = %d\n", sizeof(x));
阅读全文
posted @ 2024-11-10 17:10 夏庆兴
阅读(9)
评论(0)
推荐(0)
2024年10月27日
实验三
摘要: 实验一 代码 #include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = scor
阅读全文
posted @ 2024-10-27 17:51 夏庆兴
阅读(7)
评论(0)
推荐(0)
2024年10月13日
实验二
摘要: 实验1 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 397 #define N2 476 #define N3 21 int main(){ int cnt; int random_m
阅读全文
posted @ 2024-10-13 17:33 夏庆兴
阅读(10)
评论(0)
推荐(0)
2024年10月1日
实验1
摘要: 实验1.1 代码: 1 #include <stdio.h> 2 int main() 3 { 4 printf(" O \n"); 5 printf("<H>\n"); 6 printf("I I\n"); 7 return 0; 8 } 1.2: 代码: 1 #include <stdio.h>
阅读全文
posted @ 2024-10-01 17:02 夏庆兴
阅读(8)
评论(0)
推荐(0)
公告