I'm trying to make a code who dislay name and first name in alphabetical order. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I'm trying to make a code who dislay name and first name in alphabetical order.

I'm trying to make a code who dislay name and first name in alphabetical order. Also i found difficult to also sort date of born according to name order. https://code.sololearn.com/c9220uvrGfUj/?ref=app

22nd Feb 2020, 9:21 PM
George Listru
George Listru - avatar
1 Answer
0
use the sort function from the algorithm header file and make a comp functions that takes two struct variables. http://www.cplusplus.com/reference/algorithm/sort/ ...just to add...while you trying to code/ test it...I would comment out your inputs and just hard code an array of 3 or 4 structure variables.
22nd Feb 2020, 10:29 PM
rodwynnejones
rodwynnejones - avatar