[求助]不用for循环怎么能实现 长为10的链表?
#include <stdio.h>struct student
{
char name[20];
int scroe;
struct student *next;
}
typedef struct student mys;
void main()
{
mys *head, *q,*p;
head=(mys *)malloc(sizeof(mys));
head->next=NULL;
p=head->next;
q=(mys *)malloc(zizeof(mys));
strcpy(q->name="001");
q->score=100;
q->next=NULL;
p->next=q;
q=(mys *)malloc(zizeof(mys));
strcpy(q->name="002");
q->score=250;
q->next=NULL;
/*求助不用for循环能不能做长度是10的链表
}