会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
GerdonFreeman
博客园
首页
新随笔
联系
订阅
管理
2019年12月29日
实验七
摘要: #include <stdlib.h>#include <string.h>const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; char name[20]; float
阅读全文
posted @ 2019-12-29 22:44 GerdonFreeman
阅读(130)
评论(4)
推荐(0)
2019年12月24日
实验六
摘要: #include <stdio.h>#include <stdlib.h>const int N=5;// 定义结构体类型struct student,并定义STU为其别名 typedef struct student {long no;char name[20];int score; }STU;/
阅读全文
posted @ 2019-12-24 12:49 GerdonFreeman
阅读(101)
评论(4)
推荐(0)
2019年12月17日
实验五
摘要: // 练习:使用二分查找,在一组有序元素中查找数据项// 形参是数组,实参是数组名 #include <stdio.h>#include <stdlib.h> const int N=5; int binarySearch(int x[], int n, int item); // 函数声明 int
阅读全文
posted @ 2019-12-17 00:02 GerdonFreeman
阅读(137)
评论(4)
推荐(0)
2019年12月3日
实验四
摘要: 失败。。。。原因不明 后面程序一页显示不完就复制了。。。 printf("\n排序后: \n"); fun(string,N); output(string, N); printf("\n"); system("pause"); return 0; } void output(char x[], i
阅读全文
posted @ 2019-12-03 21:52 GerdonFreeman
阅读(65)
评论(4)
推荐(0)
2019年11月18日
实验三
摘要: 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: ");while(
阅读全文
posted @ 2019-11-18 23:20 GerdonFreeman
阅读(77)
评论(2)
推荐(0)
2019年11月7日
实验二
摘要: #include <stdio.h> int main() { int x=1234; float f=123.456; double m=123.456; char ch='a'; char a[]="Hello, world!"; // 定义一个数组a,数组中连续存放了字符串常量hello,wo
阅读全文
posted @ 2019-11-07 23:26 GerdonFreeman
阅读(107)
评论(3)
推荐(0)
2019年10月21日
实验一
摘要: C语言作业
阅读全文
posted @ 2019-10-21 23:02 GerdonFreeman
阅读(85)
评论(0)
推荐(0)
公告