• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






Lzlll

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2021年6月17日

实验七
摘要: 实验任务3: // 从文本数据文件file1.dat中读入数据,按成绩从高到低排序,将排序结果输出到屏幕上,同时以文本方式存入文件file3.dat中。 #include <stdio.h> #include <stdlib.h> #define N 10 // 定义一个结构体类型STU typed 阅读全文
posted @ 2021-06-17 21:10 Lzlll 阅读(14) 评论(2) 推荐(0)
 

2021年6月11日

实验六
摘要: 实验任务1: #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 // 运行程序输入测试时,可以把N改小一些输入测试 typedef struct student { int id; /*学生学号 */ char n 阅读全文
posted @ 2021-06-11 00:49 Lzlll 阅读(44) 评论(2) 推荐(0)
 

2021年5月28日

实验五(刘卓伦)
摘要: 实验任务1: #include<stdio.h> const int N=3; int main(){ int a[N]={1,2,3}; int i; printf("通过数组名和下标直接访问数组元素:\n"); for(i=0;i<N;i++) printf("%d;%d\n", &a[i],a 阅读全文
posted @ 2021-05-28 02:35 Lzlll 阅读(69) 评论(2) 推荐(0)
 

2021年4月30日

实验四(刘卓伦)
摘要: 实验任务1: #include <stdio.h> long long fun(int n); int main() { int n; long long f; while(scanf("%d", &n) != EOF) { f = fun(n); printf("n = %d, f = %lld\ 阅读全文
posted @ 2021-04-30 02:07 Lzlll 阅读(51) 评论(2) 推荐(0)
 

2021年4月16日

实验三(刘卓伦)
摘要: 实验任务1: #include <stdlib.h> #include <time.h> #define N 5 int main(){ int x,n; srand(time(0)); for(n=1;n<=N;n++){ x = rand()%100; printf("%3d",x); } pr 阅读全文
posted @ 2021-04-16 04:51 Lzlll 阅读(74) 评论(3) 推荐(0)
 

2021年3月30日

实验2(刘卓伦)
摘要: 实验任务1: #include <stdio.h> int main() { int num; scanf("%d",&num); printf("2049%04d\n",num); scanf("%d",&num); printf("2049%04d\n",num); scanf("%d",&nu 阅读全文
posted @ 2021-03-30 00:18 Lzlll 阅读(72) 评论(3) 推荐(0)
 

2021年3月15日

实验1(刘卓伦)
摘要: 实验内容: 实验任务1: //打印一个字符小人 #include <stdio.h> int main(){ printf(" O\n"); printf("<H>\n"); printf("I I\n"); return 0; } #include <stdio.h> int main(){ pr 阅读全文
posted @ 2021-03-15 18:00 Lzlll 阅读(71) 评论(0) 推荐(0)