![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法提高
一只酸奶牛12138
Success is the ability to go from one failure to another with no loss of enthusiasm.
展开
-
引入:字符串切割strtok()函数
问题引入最近在解决AHNU在线测试http://172.16.94.19:8080/JudgeOnline/showproblem?problem_id=1496时,遇到了麻烦,问题描述如下:Description 读取一行文本,输出相同的文本,但将所有整数中的数字替换成’x’(长度不限)。Input 一行文本。Output 替换后的一行文本。Sample Inpu...原创 2018-03-17 21:02:43 · 665 阅读 · 1 评论 -
字符串切割strtok()函数介绍
字符串切割函数——strtok()函数介绍1. 函数功能介绍strtok()函数作用于字符串,以包含在delimiters中的字符为分界符,将s切分成一个个子串;如果s为空值NULL,则函数保存的指针SAVE_PTR在下一次调用中将作为起始位置。2. 函数原型strtok()函数包含在头文件string.h中,函数的原型如下:char* strtok (char* str,co...原创 2018-04-28 20:35:09 · 1125 阅读 · 0 评论