摘要: // 从文本文件file1.dat中读取数据,找出最高分和最低分学生信息,并输出在屏幕上 #include <stdio.h> #include <stdlib.h> #define N 10 // 定义一个结构体类型STU typedef struct student { int num; cha 阅读全文
posted @ 2020-01-01 08:58 qyyyyd 阅读(134) 评论(2) 推荐(0)
摘要: //寻找两个整数之间的所有素数(包括这两个整数),把结果保存在数组bb中,函数返回素数的个数。 // 例如,输入6和21,则输出为:7 11 13 17 19。 #include <stdio.h> #include <stdlib.h> #define N 1000 int fun(int n,i 阅读全文
posted @ 2019-12-02 22:54 qyyyyd 阅读(121) 评论(2) 推荐(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 = numb 阅读全文
posted @ 2019-11-19 23:03 qyyyyd 阅读(113) 评论(2) 推荐(0)
摘要: #include<stdio.h> int main() { printf("201983270484"); return 0 ; } #include<stdio.h> int main() { printf("火星,好久不见"); return 0 ; } # include<stdio.h> int main() { int x; printf("输入一个整数:\n"); scanf("%d 阅读全文
posted @ 2019-10-22 23:14 qyyyyd 阅读(94) 评论(0) 推荐(0)