#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
void found(float(*p)[3], int n);
float arr[3][3];
int i, j;
printf("请输入三行五列的数组:\n");
for (i = 0; i < 3; i++)
for (j = 0; j < 3; j++)
scanf("%f",&arr[i][j]);
found(arr, 3);
return 0;
}
void found(float(*p)[3], int n)
{
int i, j, m;
for (i = 0; i < n; i++)
{
m = 0;
for (j = 0; j < 3; j++)
if (*(*(p + i) + j) < 60) m++;
if (m == 2)
{
for (j = 0; j < 3; j++)
printf("%7.2f", *(*(p + i) + j));
printf("\n");
}
}
}
标签:arr,++,float,单词,int,printf,found From: https://blog.51cto.com/u_16073189/6391085