摘要: 验证性实验2:修改后,运行结果正确。验证结果如下: 二进制文件不能直接输出字符,文本文件可以。 #include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student, 阅读全文
posted @ 2019-12-30 12:15 闫旭琼 阅读(101) 评论(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-23 14:48 闫旭琼 阅读(118) 评论(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,index, k 阅读全文
posted @ 2019-12-16 11:42 闫旭琼 阅读(150) 评论(3) 推荐(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-03 00:47 闫旭琼 阅读(145) 评论(3) 推荐(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-19 21:48 闫旭琼 阅读(126) 评论(3) 推荐(0)
摘要: #include <stdio.h> int main() { double x,y; char c1,c2,c3; int a1,a2,a3; scanf("%d %d %d",&a1,&a2,&a3); printf("%d,%d,%d\n",a1,a2,a3); scanf("%c%c%c", 阅读全文
posted @ 2019-11-05 22:54 闫旭琼 阅读(113) 评论(4) 推荐(0)
摘要: 表达式和符号运用生疏 经常少符号 阅读全文
posted @ 2019-10-21 12:17 闫旭琼 阅读(80) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-10-21 11:03 闫旭琼 阅读(140) 评论(0) 推荐(0)