↧
Answer by Jonathan Leffler for Implement a bubble sort for an array of structs
You should use structure assignments because they are radically more compact than repeated assignments for each element of the structure. Like this: struct Record { int seqnum; int threat; int...
View ArticleImplement a bubble sort for an array of structs
I'm trying to sort through an array of structs and I'm having trouble correctly sorting through the array. I have tried using pointer arithmetic, memcpy and array notation to sort through. Is there a...
View Article