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






一发出甘雨

 
 

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

2021年12月29日

实验七
摘要: 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 一发出甘雨 阅读(23) 评论(0) 推荐(0)
 

2021年12月21日

实验六
摘要: #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 一发出甘雨 阅读(42) 评论(0) 推荐(0)
 

2021年12月14日

实验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 一发出甘雨 阅读(21) 评论(1) 推荐(0)
 

2021年12月7日

实验四
摘要: #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 一发出甘雨 阅读(21) 评论(0) 推荐(0)
 

2021年11月30日

实验三
摘要: #include <stdio.h> long long fac(int n); int main() { int i, n; printf("Enter n: "); scanf_s("%d", &n); for (i = 1; i <= n; ++i) printf("%d! = %lld\n" 阅读全文
posted @ 2021-11-30 12:59 一发出甘雨 阅读(11) 评论(1) 推荐(0)
 

2021年11月16日

实验二
摘要: #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> int main() { int num; scanf("%d", &num); printf("2049%04d\n", num); scanf("%d", &num); printf("2049% 阅读全文
posted @ 2021-11-16 12:31 一发出甘雨 阅读(64) 评论(4) 推荐(0)
 

2021年11月1日

实验一
摘要: #include <stdio.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); printf(" O \n"); printf("<H>\n"); printf("I I\n"); return 0; } #inc 阅读全文
posted @ 2021-11-01 16:37 一发出甘雨 阅读(84) 评论(0) 推荐(0)