#include <iostream>
#include<fstream>
using namespace std;
void writeFile(char fname[],int n)
{
fstream fwrite;
fwrite.open(fname,ios::out);
float a,b,p;
for(int i=0;i<n;i++)
{
cout<<"enter arival time :";
cin>>a;
cout<<endl<<"enter brust time:";
#include<fstream>
using namespace std;
void writeFile(char fname[],int n)
{
fstream fwrite;
fwrite.open(fname,ios::out);
float a,b,p;
for(int i=0;i<n;i++)
{
cout<<"enter arival time :";
cin>>a;
cout<<endl<<"enter brust time:";