#include<stdio.h>
#include<stdlib.h>
#include<string.h>
struct link
{
char name[20];
char password[20];
struct link *next;
} link,*linklist;
int main()
{
struct link *L;
L=(struct link*)malloc(sizeof(struct link));
strcpy(L->name,"oooo");
strcpy(L->password,"pppp");
printf("%s",L->name);
printf("%s",L->password);
L->next=NULL;
free(L);
}
// 这个代码错误非常多么,我指针学得不是很好,,,,,希望指点
_遥不可及_
相关分类