C语言编程中的错误

  如果需要使用NULL,那么需要include头文件stdio.h

  如果给结构体的指针分配空间的时候,sizeof里面需要是(struct name),而不是(name),否则有的编译器(其实就是我在PAT上的编译器gcc)会说undeclared (first use in this function)

posted @ 2019-05-21 17:45  nm_bk  阅读(161)  评论(0编辑  收藏  举报