Visual Studio 2005编写C程序出错:error C2143,)前缺少*

    刚开始我也不知道是怎么回事,后来注意到,在C中,凡是结构体定义时前面都要用struct。

    比如我定义了一个struct pcap_pkthdr {...};

    那么在使用这个结构体定义变量时就必须写:struct pcap_pkthdr *header;

原文地址:https://www.cnblogs.com/wangshuo/p/2109934.html