C语言的字符串分解——strtok函数和strsep函数
原来C语言也有类似java的split的函数,按特定字符对字符串进行分解:strtok的解释和示例:strtokSyntax:#include<cstring>char*strtok(char*str1,constchar*str2);The strtok() function returns a pointer to the next "token" in str1, where str2 contains the delimiters th...