回复:(栖柏)struct xy *pxy;//这个是不行的,因为类...
你的意思是这样写吗?
#include <stdio.h>
#include <stdlib.h>
typedef struct {
int x, y;
xy *pxy;
}xy;
int main(void)
{
xy *pxy1, *pxy2;
pxy1 = (xy*)malloc(sizeof(xy));
pxy2 = (xy*)malloc(sizeof(xy));
pxy1 -> pxy = pxy2;
return 0;
}
vc6.0编译出错