会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
区块链散户一枚
Python中毒爱好者
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
4
5
6
7
8
9
10
11
12
···
44
下一页
2021年9月29日
【C语言程序设计第四版】第十二章 程序设计题 1
摘要: 第一题:统计文本文件中各类字符个数:分别统计一个文本文件中字母、数字及其其它字符的个数。 #include <stdio.h> #include <stdlib.h> #include <ctype.h> int main(void){ int alphabet, digit, other; cha
阅读全文
posted @ 2021-09-29 10:46 就是想学习
阅读(182)
评论(0)
推荐(0)
2021年9月28日
【C语言程序设计第四版】练习12-7
摘要: #include <string.h> #include <stdlib.h> #include <stdio.h> long size; struct LogData{ long logid; char logdate[11]; char lognote[15]; double charge; d
阅读全文
posted @ 2021-09-28 00:15 就是想学习
阅读(94)
评论(0)
推荐(0)
2021年9月27日
【C语言程序设计第四版】练习12-6
摘要: 实数取整写入文件 #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)
【C语言程序设计第四版】练习12-5
摘要: 写字符并验证 #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)
【C语言程序设计第四版】练习12-4
摘要: 字母转换并统计行数 #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)
【C语言程序设计第四版】例12-5代码
摘要: #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)
【C语言程序设计第四版】例12-4代码
摘要: #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)
【C语言程序设计第四版】例12-3代码
摘要: #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 就是想学习
阅读(74)
评论(0)
推荐(0)
【C语言程序设计第四版】例12-2代码
摘要: #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)
【C语言程序设计第四版】例12-1代码
摘要: #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)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
44
下一页
公告