摘要: // 从文本文件file1.dat中读取数据,找出最高分和最低分学生信息,并输出在屏幕上 #include <stdio.h> #include <stdlib.h> #define N 10 // 定义一个结构体类型STU typedef struct student { int num; cha 阅读全文
posted @ 2019-12-30 14:36 南神经 阅读(106) 评论(3) 推荐(0)
摘要: #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-24 00:51 南神经 阅读(88) 评论(2) 推荐(0)
摘要: #include <stdio.h> #include <stdlib.h> const int N=5; int binarySearch(int x[], int n, int item); // 函数声明 int main() { int a[N]={2,7,19,45,66}; int i, 阅读全文
posted @ 2019-12-17 00:53 南神经 阅读(81) 评论(4) 推荐(0)
摘要: #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-02 18:32 南神经 阅读(136) 评论(1) 推荐(0)
摘要: #include <stdio.h> #include <stdlib.h> int main() { int number, max, min, n; n=1; printf("输入第%d个数: ", n); scanf("%d", &number); max = number; min = nu 阅读全文
posted @ 2019-11-20 01:22 南神经 阅读(124) 评论(1) 推荐(0)
摘要: 阅读全文
posted @ 2019-11-05 23:42 南神经 阅读(81) 评论(2) 推荐(0)
摘要: 阅读全文
posted @ 2019-10-21 23:10 南神经 阅读(114) 评论(1) 推荐(0)