今天復(fù)習(xí)了之前所學(xué)的知識。
鏈表,是對結(jié)構(gòu)體數(shù)據(jù)來說的。
#include<stdio.h>
#include<stdlib.h>
int main()
{
? ? ? struct stu
? ? ?{
? ? ? ? ? ?int num;
? ? ? ? ? char name[10];
? ? ? ? ? struct stu *next;
};
struct stu *head;
head=(?struct stu *)malloc(sizeof(stu));
}
鏈表太難了,手不會,腦子也不會.