c 语法

来源:互联网 发布:淘宝优惠劵淘易惠 编辑:程序博客网 时间:2024/05/16 05:55

typedef struct rbtree_base_ {
    char color_field;
    struct rbtree *left;
    struct rbtree *right;
}rbtree_base;

typedef struct rbtree_ {
    rbtree_base;
    wchar_t const   *key;
    wchar_t const   *value;
} rbtree;

int _tmain(int argc, _TCHAR* argv[])
{
    rbtree t;
    t.color_field = 1;
    return 0;
}

 

vs2010 编译通过

原创粉丝点击