void saveLog(int n,double timeelapsed1,double timeelapsed2)
{
ofstream SaveFile("logsort.txt",ios::app);
SaveFile << "No. of elements : "<<n<<endl;
SaveFile << "Time taken by bubblesort : "<<timeelapsed1<<endl;
SaveFile << "Time taken by quicksort : "<<timeelapsed2<<endl;
SaveFile.close();
}
No comments:
Post a Comment