struct data {time_t dt; string group,name,subject;};
struct node { data *rec; node *next;};
struct list { node *head;};
data *makeData(time_t dt,string group,string name,string subject)// zamiast tego musi być konstruktor, bo to co robisz to nie C++ tylko C z cin/cout i new/delete
{
data *tmp=new data;
tmp->dt=dt;
tmp->group=group;
tmp->name=name;
tmp->subject=subject;
return tmp;
}
node *makeNode(data *rec,node *next)// zamiast tego musi być konstruktor, bo to co robisz to nie C++ tylko C z cin/cout i new/delete
{
node *tmp;
tmp->rec=rec;
tmp->next=next;
return tmp;
}
void append(list *lst,data *rec)// zamiast tego musi być metoda, bo to co robisz to nie C++ tylko C z cin/cout i new/delete