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...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment