编程以便从一批数据中求最大值最
#include
#include
int max(int *arr,int num)
{
int max=arr[0],i;
for (i=1;imax)
max=arr[i];
return max;
}
int min(int *arr,int num)
{
int min=arr[0],i;
for (i=1;i全部
#include
#include
int max(int *arr,int num)
{
int max=arr[0],i;
for (i=1;imax)
max=arr[i];
return max;
}
int min(int *arr,int num)
{
int min=arr[0],i;
for (i=1;i 收起