• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
陈一洲
博客园    首页    新随笔    联系   管理    订阅  订阅
2019年12月31日
实验7
摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; 阅读全文
posted @ 2019-12-31 21:31 春日野•悠 阅读(96) 评论(3) 推荐(0)
2019年12月23日
实验6
摘要: #include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; 阅读全文
posted @ 2019-12-23 11:30 春日野•悠 阅读(84) 评论(2) 推荐(0)
2019年12月17日
实验5
摘要: // 练习:使用二分查找,在一组有序元素中查找数据项 // 形参是数组,实参是数组名 #include <stdio.h> #include <stdlib.h> const int N=5; int binarySearch(int x[], int n, int item); // 函数声明 i 阅读全文
posted @ 2019-12-17 22:17 春日野•悠 阅读(127) 评论(3) 推荐(0)
2019年12月1日
实验四
摘要: //寻找两个整数之间的所有素数(包括这两个整数),把结果保存在数组bb中,函数返回素数的个数。 // 例如,输入6和21,则输出为:7 11 13 17 19。 #include <stdio.h> #include <stdlib.h> #define N 1000 int fun(int n,i 阅读全文
posted @ 2019-12-01 17:07 春日野•悠 阅读(89) 评论(2) 推荐(0)
2019年11月16日
实验3
摘要: /* 编程找出5个整数的最大数和最小数 《C语言程序设计教程学习指导》p122实验内容(3) */ #include <stdio.h> #include <stdlib.h> int main() { int number, max, min, n; n=1; printf("输入第%d个数: " 阅读全文
posted @ 2019-11-16 18:48 春日野•悠 阅读(115) 评论(2) 推荐(0)
2019年11月5日
实验2
摘要: /* 《C语言程序设计教程学习指导》p118 实验内容(1) 这是一个常用格式控制符使用示例 运行程序,观察行结果,对照每一行printf()中的格式控制符,理解其功能和用法 */ #include <stdio.h> int main() { int x=1234; float f=123.456 阅读全文
posted @ 2019-11-05 23:54 春日野•悠 阅读(129) 评论(2) 推荐(0)
2019年10月18日
实验1
摘要: 1:不要忘记打引号,分号 2:注意格式正确,不要忘记打括号 总结:第一次接触编程,也问了别人也借鉴了,还是得多加练习 阅读全文
posted @ 2019-10-18 21:35 春日野•悠 阅读(133) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3