I am a beginner
I am using with CORSIKA software. cosika's outputs are text files with 8 or 7 column and more than 2000 row(like matrix) .
Arrays of this matrix are number in Scientific notation like fallowing image
I want to read data in 7th column and calculate some parameters like average, maximum, minimum in one column.
I have this code to read and display text file but i dont know how use numbers and calculate some parameters.
#include<iostream.h>
#include<stdio.h>
#include<conio.h>
int main()
{
FILE *k;
char c;
k=fopen("c:\\fff.txt","r");
c=getc(k);
while(c!=EOF)
{
cout<<c;
c=getc(k);
}
getch();
fclose(k);
return 0;
}
please help me. thanks