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
1 Respuesta
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.