摘要:
实数取整写入文件 #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", " 阅读全文
posted @ 2021-09-27 17:03
就是想学习
阅读(87)
评论(0)
推荐(0)
摘要:
写字符并验证 #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 阅读全文
posted @ 2021-09-27 16:32
就是想学习
阅读(61)
评论(0)
推荐(0)
摘要:
字母转换并统计行数 #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")) 阅读全文
posted @ 2021-09-27 16:11
就是想学习
阅读(76)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include <string.h> #include <stdlib.h> #define SIZE 5 struct sysuser{ char username[20]; char pwssword[8]; }; void encrypt_(char * 阅读全文
posted @ 2021-09-27 15:53
就是想学习
阅读(66)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include <stdlib.h> #include <string.h> struct sysuser{ char username[20]; char password[8]; }; void encrypt_(char *pwd); int check 阅读全文
posted @ 2021-09-27 15:10
就是想学习
阅读(99)
评论(0)
推荐(0)
摘要:
#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 阅读全文
posted @ 2021-09-27 14:00
就是想学习
阅读(75)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include <string.h> #include <stdlib.h> struct sysuser{ char username[20]; char password[8]; }; void encrypt_(char *pwd); int main( 阅读全文
posted @ 2021-09-27 11:21
就是想学习
阅读(70)
评论(0)
推荐(0)
摘要:
#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 阅读全文
posted @ 2021-09-27 10:46
就是想学习
阅读(74)
评论(0)
推荐(0)
浙公网安备 33010602011771号