#include
void wwjt();
#define R 3
#define C 4
int * MaxRow(int a[R][C])
{
int i,j,imax;
/**********Program**********/
????????????这儿怎么补?
/********** End **********/
return b;
}
void main()
{
int a[R][C];
int *b,i,j;
for(i=0;i<R;i++)
for(j=0;j<C;j++)
scanf("%d",&a[i][j]);
b=MaxRow(a);
for(i=0;i<R;i++)
{
printf("%4d",b[i]);
}
wwjt();
}
void wwjt()
{
FILE *IN,*OUT;
int a[R][C];
int *b,i,j;
IN=fopen("in.dat","r");
if(IN==NULL)
{
printf("Please Verify The Currernt Dir..It May Be Changed");
}
OUT=fopen("out.dat","w");
if(OUT==NULL)
{
printf("Please Verify The Current Dir.. It May Be Changed");
}
for(i=0;i<R;i++)
{
for(j=0;j<C;j++)
{
fscanf(IN,"%d",&a[i][j]);
}
}
b=MaxRow(a);
for(i=0;i<R;i++)
{
fprintf(OUT,"%d\n",b[i]);
}
fclose(IN);
fclose(OUT);
}