The fundamentals of your program are broken anyway. No point in having input and output working if you read the data, munge it, and then write it out.
When you tell people to get in a line, in...
Type: Posts; User: grumpy
The fundamentals of your program are broken anyway. No point in having input and output working if you read the data, munge it, and then write it out.
When you tell people to get in a line, in...
From the code of your sort_age() function, it appears you somehow want to have a single struct that contains an array of ages of unspecified size, and you want to sort that array.
Your problem...
Given a single instance of your struct database, what would you expect "sorting" it to achieve?