为什么编译不过
#include<stdio.h>#include<stdlib.h>
typedef int datatype;
#define maxsize 1024
typedef struct node
{
datatype tata;
struct node *next;
}link;
void insert(link *L,datatype x)
{
link *s=NULL,*r=NULL;
s=malloc(sizeof(link));
}
1.cpp(13) : error C2440: '=' : cannot convert from 'void *' to 'struct node *'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast