用字符数组和字符指针做函数参数实现删除某字符的相同字符
如果正向思维来做,使用编程删除某相同字符,不好实现或者说不能实现(反正我不会),那就不妨逆向思维来解决——用if条件语句打印出不用背删除的字符,跳过被删除的字符,代码如下【字符数组创建不够完美,最好使用动态数组】
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
1 | $ hexo new "My New Post" |
More info: Writing
1 | $ hexo server |
More info: Server
1 | $ hexo generate |
More info: Generating
1 | $ hexo deploy |
More info: Deployment