#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
for(i=0;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("\n");
for(i=NUMROWS-1;i>=0;i--)
printf("%s ",word[i]);
printf("\n");
return 0;
}
代码给你了
好长!
不知道