I need to know how to get this to calculate the maxvalue of my array. I don't really understand the whole initailizing functions thing. this is what i got so far.
#include <iostream>
#include <cstdlib>
using namespace std;
//#include "stat_lib.h"
int main()
{
double Ferdeg[100];
double celdeg[100];
double avg;
int k;
for (k=0;k<100;k++)
{
Ferdeg[k]=((double)rand()/RAND_MAX)*(100-70)+70;
celdeg[k]=(5./9.)*(Ferdeg[k]-32);
}
avg = mean(celdeg,100);
}