1
0

c8-15.c 494 B

12345678910111213141516171819202122
  1. #include <stdio.h>
  2. int main()
  3. {void search(float (*p)[4],int n);
  4. float score[3][4]={{65,57,70,60},{58,87,90,81},{90,99,100,98}};
  5. search(score,3);
  6. return 0;
  7. }
  8. void search(float (*p)[4],int n)
  9. {int i,j,flag;
  10. for(j=0;j<n;j++)
  11. {flag=0;
  12. for(i=0;i<4;i++)
  13. if(*(*(p+j)+i)<60) flag=1;
  14. if(flag==1)
  15. { printf("No.%d fails,his scores are:\n",j+1);
  16. for(i=0;i<4;i++)
  17. printf("%5.1f ",*(*(p+j)+i));
  18. printf("\n");
  19. }
  20. }
  21. }