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






一发出甘雨

 
 

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

12 2021 档案

 
实验七
摘要:1 #include <stdio.h> #define N 5 // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; } STU; // 函数声明 void i 阅读全文
posted @ 2021-12-29 18:28 一发出甘雨 阅读(49) 评论(0) 推荐(0)
实验六
摘要:#include <stdio.h> #define N 5 int binarySearch(int* x, int n, int item); // 函数声明 int main() { int a[N] = { 2, 7, 19, 45, 66 }; int i, index, key; pri 阅读全文
posted @ 2021-12-21 17:34 一发出甘雨 阅读(57) 评论(0) 推荐(0)
实验5
摘要:#include <stdio.h> #define N 5 void output(int x[], int n); int main() { int x[N] = { 9, 55, 30, 27, 22 }; int i; int k; // 用于记录最大元素的下标 int t; // 用作交换 阅读全文
posted @ 2021-12-14 17:42 一发出甘雨 阅读(40) 评论(1) 推荐(0)
实验四
摘要:#include <stdio.h> const int N = 4; int main() { int a[N] = { 2, 0, 2, 1 }; char b[N] = { '2', '0', '1', '1' }; int i; printf("sizeof(int) = %d\n", si 阅读全文
posted @ 2021-12-07 22:10 一发出甘雨 阅读(40) 评论(0) 推荐(0)