求解大神,怎么达到目标 3
#include<stdio.h> #include<string.h>
#define xy 3][5
int main()
{
char (*a)[5];
char b[xy]={{"This "},{"is a "},{"word!"}},n;
char c[2][2],d[5];
a = b;
printf("please input 4 ge zifu:");
gets(c);
d[0] = c[0][1] ^ (*(*(b+2)+2)-1);
d[1] = c[1][0] ^ (**(a+1)+5);
d[2] = (c[0][0] + n) >> 1;
d[3] = (c[1][1] + (*(*c+1)+2)) >> 1;
d[4] = '\0';
if (d[0] == 'W' && d[1] == 'E')
{
printf("恭喜完成目标2");
if (strcmp(d,"WEll") == 0)
{
printf("恭喜完成目标3");
}
}
printf("\n%s",d);
return 0;
}