LeetCode算法题解 1108-IP 地址无效化

题目描述web 题解:数组 讲address的每一个字符串以.分隔,而后放入字符串数组,最后在除了最后一个字符串后面加入一个[.]就能够了。 分隔是用的:strtok函数(字符串要用char表示) char —> string:直接强制转换 string —> char*:char* str1= const_cast<char *>(str2.c_str());svg 代码:函数 class So
相关文章
相关标签/搜索