大家帮我看看这个C语言怎么错了,行么?

2025-04-02 08:10:42
推荐回答(3个)
回答1:

#include
#include
int main()
{
#define NUMROWS 4
#define NUMLOWS 81
char word[NUMROWS][NUMLOWS];
int i,j,m,t;
printf("please input a four character string:\n");
for(i=0;i scanf("%s",word[i]);
for(i=0;i printf("%s ",word[i]);
printf("\n");
for(i=NUMROWS-1;i>=0;i--)
printf("%s ",word[i]);
printf("\n");
for(i=0;i {
for(j=0,m=strlen(word[i])-1;j<=m;j++,m--)
{
t=word[i][j];
word[i][j]=word[i][m];
word[i][m]=t;
}
}
for(i=0;i printf("%s ",word[i]);
printf("\n");
for(i=NUMROWS-1;i>=0;i--)
printf("%s ",word[i]);
printf("\n");
return 0;
}
代码给你了

回答2:

好长!

回答3:

不知道