6

I'm using visual studio to write a c code.

This is the malloc code line i was told to use:

root = (Coor)malloc(sizeof(Coor));

It doesn't let me use it for the following error:

identifier not found

Can anyone tell me why it happens and how to fix it?

Thanks,

4

1 回答 1

9

请检查您是否已包含<stdlib.h><malloc.h>

于 2013-06-22T18:44:52.430 回答