Hi to all,
I have just started programing with C++ but I am having some problems with linked lists
I have this easy homework that I cant compile correctly.
We have this structure:
struct rekord
{
char key[10];
int nr;
rekord next;
};
Write a program that reads the elements of the list and makes a new sorted one by the key field. If they have the same value then sort by the nr field.
I don't want the full program, just a function that adds new elements to the list.
Thank you,
and a Happy 2009 to all :)