#include 
#include 
#include 

int main(void)
{

cout << "In the name of Allah" << "\n"  ;
int   FPre =0 ;
float FPost=0 ;
int track = 0  ;
int  oldFPre=0;	float AvgFPost=0;	int n=1;
FILE *fptr ;

		  fptr = fopen("delay_result.txt","r");
		  while (fscanf(fptr,"%d %f",&FPre,&FPost) != EOF )
		  {
			if (oldFPre == FPre && track == 1)
			{
	 	        AvgFPost = AvgFPost + FPost;
		  	n++;
			}
			else {
			     cout << AvgFPost << " " << n << "\n" ;
			     cout << "Time="<

    Source: geocities.com/shezy22/code

               ( geocities.com/shezy22)