小写<windows.h>和大写<Windows.h>标题有什么区别?我正在阅读一些关于Win32编程的旧教程,它们都使用小写的"w".代码编译正常,但VS 2012自动完成功能仅列出<Windows.h>标题.
我在Windows上使用MinGW.我正在构建链表,我对此感到困惑.
#include <stdio.h>
#include <stdlib.h>
typedef struct Data
{
int x;
int y;
struct BlaBla * next; /*compiles with no problem*/
}List;
int main(void)
{
List item;
List * head;
head = NULL;
return 0;
}
Run Code Online (Sandbox Code Playgroud)
我现在结构不能有struct变量(对象,该结构的实例),但可以有该结构类型的指针.不知道指针可以是未显示类型的指针.struct BlaBla * next;(不是链表,它必须struct Data * next是一般的说话)