最佳答案:用scanf/printf输入输出。scanf/printf是C语言的格式化输入输出函数,可以用于输入输出各种基础类型,字符串(char*)也其支持范围内。格式化字符为%s。定义char str[10