Also see post #3 please!
Hi guys, I'm currently learning C, and I've been following this online guide. I've gotten up to one of the many (Try This!) bubbles, and I'm stuck as to what it really means.
It reads: "Create an array of records and write some code to sort that array on one integer field."
I understand a bit about arrays and how they work, but I'm not quiet sure what it means by 'an array of records'. Not sure what records are, as it has no mention so far in the guide. Another thing, 'write some code to sort that array on one integer field', what does it mean by integer field.
In the code just before the example it says something about 'struct rec r;' and has something like:
So maybe it's reffering to something like that? I really am confused here lol.Code:struct rec { int a,b,c; float d,e,f; } r;
EDIT: It also says "struct rec r[50]; /* Array of records*/
So yeah.. Thanks.
Btw I just found out this guide is like years and years old, so maybe if someone knows of a more up to date one that'd help out. Thanks.
Also see post #3 please!