0

Write a program in C++ to read in dates in form of strings “mm/dd/yy” from input file and sort them using quicksort algorithm.

The input has to be read from a file, which contains the first 50 working days of year 2020 in form of mm/dd/yy. In the input file, first the dates for February have to be stored followed by January and March. The output file should store the sorted dates. For comparing two dates, you have to write a function compare_dates(char *date1, char *date2), which will return 0, 1 or -1 depending on if date1=date2 or date1 is smaller than date2 or reverse

21st Apr 2020, 9:58 AM
Anupriya Goyal
Anupriya Goyal - avatar
4 Answers
0
Yup write it "yourself" ,also you read it wrong ,this section is for Q&A only not for assignments or homework
21st Apr 2020, 10:04 AM
Abhay
Abhay - avatar
0
Show your attempt and someone might help you!!
21st Apr 2020, 10:04 AM
Abhay
Abhay - avatar
21st Apr 2020, 11:09 AM
Anupriya Goyal
Anupriya Goyal - avatar
0
Can any one help it's not working
21st Apr 2020, 11:09 AM
Anupriya Goyal
Anupriya Goyal - avatar