12 2019 档案

摘要:#include<stdio.h> #include<stdlib.h> int main() { FILE *fp; char ch; fp=fopen("file1.dat","rb"); while(!feof(fp)) { ch=fgetc(fp); putchar(ch); } fclos 阅读全文
posted @ 2019-12-29 14:18 任12123 阅读(137) 评论(2) 推荐(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 09:39 任12123 阅读(117) 评论(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-16 23:42 任12123 阅读(122) 评论(2) 推荐(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-01 14:07 任12123 阅读(121) 评论(2) 推荐(0)