会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xl14
博客园
首页
新随笔
联系
订阅
管理
2024年12月30日
实验七
摘要: test4 源代码 #include <stdio.h> int main() { char file_name[20] = "data4.txt"; FILE *fp = fopen(file_name, "r"); if (fp == NULL) { printf("文件打开失败,请检查文件名和
阅读全文
posted @ 2024-12-30 08:02 liusihan
阅读(9)
评论(0)
推荐(0)
2024年12月22日
实验六
摘要: test4 源代码 #include <stdio.h> #include <string.h> #define N 10 typedef struct { char isbn[20]; char name[80]; char author[80]; double sales_price; int
阅读全文
posted @ 2024-12-22 22:20 liusihan
阅读(16)
评论(0)
推荐(0)
2024年12月8日
实验五
摘要: test1.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:15 liusihan
阅读(17)
评论(0)
推荐(0)
2024年11月11日
实验四
摘要: 实验一 源代码 #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-11 00:06 liusihan
阅读(25)
评论(0)
推荐(0)
2024年10月30日
实验三
摘要: 实验一 源代码 #include<stdio.h> char score_to_grade(int score); int main(){ int score; char grade; while(scanf("%d",&score) !=EOF){ grade = score_to_grade(s
阅读全文
posted @ 2024-10-30 15:23 liusihan
阅读(23)
评论(0)
推荐(0)
2024年10月11日
实验二
摘要: 实验二任务一源代码#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 rand
阅读全文
posted @ 2024-10-11 17:06 liusihan
阅读(22)
评论(0)
推荐(0)
2024年9月29日
刘思含实验一
摘要: test 实验任务1 源代码 #include<stdio.h>int main() { printf(" o o \n"); printf("<H> <H>\n"); printf("I I I I\n"); return 0;} 运行结果 源代码 #include<stdio.h>int mai
阅读全文
posted @ 2024-09-29 20:23 liusihan
阅读(27)
评论(0)
推荐(0)
公告