2020年1月1日
摘要: 改了之后是可以正常运行的 #include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { 阅读全文
posted @ 2020-01-01 09:56 runwild 阅读(136) 评论(1) 推荐(0)
  2019年12月25日
摘要: #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:01 runwild 阅读(126) 评论(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:26 runwild 阅读(147) 评论(2) 推荐(0)
  2019年12月1日
摘要: #include <stdio.h> #include <stdlib.h> #define N 1000 int fun(int n,int m,int bb[N]) { int i,j,k=0,flag; for(j=n;j<=m;j++) { flag=1; for(i=2;i<j;i++) 阅读全文
posted @ 2019-12-01 17:15 runwild 阅读(135) 评论(2) 推荐(0)
  2019年11月19日
摘要: 这个我明明输进去的是一个可以有解的二次方程但是结果出不来,这个我没改过老师的代码啊。疑惑? #include <stdio.h> #include <stdlib.h> int main() { int number, max, min, n; n=1; printf("输入第%d个数: ", n) 阅读全文
posted @ 2019-11-19 23:21 runwild 阅读(80) 评论(1) 推荐(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!"; // 定义一个数组a,数组中连续存放了字符串常量hello,wo 阅读全文
posted @ 2019-11-06 01:43 runwild 阅读(103) 评论(1) 推荐(0)
  2019年10月21日
摘要: 第一次写实验遇到的问题有devc++运行结果很久才出来,博客园插入窗口显示不出来。打代码的过程中错误很多,有时候是没打引号,有时候没打分号,或者用了中文引号等等很多问题,还有写的过程中算法明白却不会打出来。 阅读全文
posted @ 2019-10-21 10:58 runwild 阅读(133) 评论(0) 推荐(0)

点击右上角即可分享
微信分享提示