会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
绾烟
博客园
首页
新随笔
联系
订阅
管理
2020年1月1日
实验7
摘要: // 从文本文件file1.dat中读取数据,找出最高分和最低分学生信息,并输出在屏幕上 #include <stdio.h> #include <stdlib.h> #define N 10 // 定义一个结构体类型STU typedef struct student { int num; cha
阅读全文
posted @ 2020-01-01 07:53 绾烟
阅读(163)
评论(2)
推荐(0)
2019年12月25日
实验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-25 00:30 绾烟
阅读(129)
评论(1)
推荐(0)
2019年12月18日
实验五
摘要: // 练习:使用二分查找,在一组有序元素中查找数据项 // 形参是数组,实参是数组名 #include <stdio.h> #include <stdlib.h> const int N=5; int binarySearch(int x[], int n, int item); // 函数声明 i
阅读全文
posted @ 2019-12-18 00:13 绾烟
阅读(175)
评论(3)
推荐(0)
2019年12月4日
实验四
摘要: #include <math.h> #include <stdio.h> #include <stdlib.h> // 函数声明 void solve(double a, double b, double c); // 主函数 int main() { double a, b, c; printf(
阅读全文
posted @ 2019-12-04 01:40 绾烟
阅读(178)
评论(3)
推荐(0)
2019年11月20日
实验三
摘要: Part1 #include <math.h> #include <stdio.h> #include <stdlib.h> int main() { float a, b, c, x1, x2; float delta, real, imag; printf("Enter a, b, c: ");
阅读全文
posted @ 2019-11-20 00:38 绾烟
阅读(89)
评论(3)
推荐(0)
2019年11月6日
实验二
摘要: #include<stdio.h> int main() { int x=1234; float f=123.456; double m=123.456; char ch='a'; char a[]="Hello,World!"; int y=3,z=4; printf("%d %d\n",y,z)
阅读全文
posted @ 2019-11-06 00:07 绾烟
阅读(88)
评论(2)
推荐(0)
2019年10月21日
实验1 C语言开发环境使用和数据类型、运算符、表达式
摘要: #include <stdio.h> int main() { int x; printf("输入一个整数: \n"); scanf("%d",&x); if( x%2==0) printf("是偶数"); else printf("是奇数"); return 0; } #include<stdio
阅读全文
posted @ 2019-10-21 11:56 绾烟
阅读(91)
评论(0)
推荐(0)
公告