#include <stdio.h>
#include <string.h>
main ()
{
char a[2][80], t;
int r, j, m, n, L, max;
for (r = 0; r <= 1; r++)
gets (a[r]);
t = a[0][0];
for (r = 0; r <= 1; r++)
{
L = strlen (a[r]);
for (j = 0; j <= L; j++)
if (a[r][j] > t)
{
max = a[r][j];
max = t;
m = r;
n = j;
}
}
printf ("max=%c row=%d colum=%d\n", max, m, n);
getch ();
return 0;
}
输出结果不对?