; char destination[20]; sscanf(source, "%20s", destination); printf("提取的字符串为:%s\n", destination); return 0; } 复制代码 使用strtok函数: #include <stdio.h> #include <string.h> int main() { char source[] = "Hello, World!"; char *token; token = strtok(source, " "); /...