摘要:
实数取整写入文件 #include <stdio.h> #include <stdlib.h> #define MAXN 300 int main(void){ int i,j; FILE *fp, *fp1; double nums[MAXN]; if ((fp=fopen("f1.txt", " 阅读全文
摘要:
写字符并验证 #include <stdio.h> #include <stdlib.h> #define MAXN 300 int main(void){ FILE *fp; char ch; char string[MAXN]; gets(string); if ((fp=fopen("f3.t 阅读全文
摘要:
字母转换并统计行数 #include <stdio.h> #include <stdlib.h> int main(void){ char ch; int enter_count; FILE *fp; enter_count = 0; if ((fp=fopen("f12-2.txt", "r")) 阅读全文
摘要:
#include <stdio.h> #include <string.h> #include <stdlib.h> #define SIZE 5 struct sysuser{ char username[20]; char pwssword[8]; }; void encrypt_(char * 阅读全文
摘要:
#include <stdio.h> #include <stdlib.h> #include <string.h> struct sysuser{ char username[20]; char password[8]; }; void encrypt_(char *pwd); int check 阅读全文
摘要:
#include <stdio.h> #include <stdlib.h> int main(void){ FILE *fp1, *fp2; char ch; if ((fp1 = fopen("f12-2.txt", "r")) == NULL) { printf("File open erro 阅读全文
摘要:
#include <stdio.h> #include <string.h> #include <stdlib.h> struct sysuser{ char username[20]; char password[8]; }; void encrypt_(char *pwd); int main( 阅读全文
摘要:
#include <stdio.h> #include <stdlib.h> #include <math.h> int prime(int n); int main(void){ int n = 2, count = 0; FILE * fp; if ((fp = fopen("prime.txt 阅读全文