将char *ss改为char *ss[100];就可以了 也可以使用动态申请空间的方法 include <stdio.h> include <malloc.h> int main(){ int length;printf("please enter the length of the word:\n");scanf("%d",&length);char *ss=(char*)malloc(sizeof(char)*length+1);printf("please enter a...