字符串输入输出: printf("Enter a string: "); scanf("%s", str); // 输入字符串到str中 printf("You entered: %s\n", str); // 输出字符串str 复制代码 字符串拼接: char str1[100] = "hello"; char str2[] = "world"; strcat(str1, str2); // 将str2拼接到str1的末尾 printf("Co...