摘要: 不使用库函数自己编写strcpy进行字符串复制; #include "stdio.h"#define OK 1#define ERR... 阅读全文
posted @ 2021-01-03 21:11 nepu_bin 阅读(220) 评论(0) 推荐(0)
摘要: 输入字符串遇到换行或空格结束输出 char a[100],c;int i;i = 0;while(scanf("%c",&c) &&... 阅读全文
posted @ 2021-01-03 17:27 nepu_bin 阅读(294) 评论(0) 推荐(0)
摘要: 核心思想:(类似于厄拉多塞筛选) 建立一个长度128的数组用来计数;(数组下标恰好包含了ascll码表的所有值) 此时 数组下标可用... 阅读全文
posted @ 2021-01-03 16:35 nepu_bin 阅读(82) 评论(0) 推荐(0)
摘要: 记录学习时很好的一个解法~~ #include "stdio.h"#include "string.h"void DeleteSpa... 阅读全文
posted @ 2021-01-03 15:33 nepu_bin 阅读(54) 评论(0) 推荐(0)