Monday, July 27, 2009

Structure sorting in C++>?

how do i alphabetically sort two structures? for example two structs of type book are sorted by their title members. if the titles match then by their author names.

Structure sorting in C++%26gt;?
Sorting an array of structures is basically the same as sorting any other array. The only difference is the comparison statement.


http://mathbits.com/mathbits/compsci/Str...


No comments:

Post a Comment