seckcoder

Bring Reality to Games

 

关于struct

今天写code时突然发现一个很简单, 很容易弄错, 便之前却没有意识到的问题

typdef struct some_struct {

}structAnotherName;

struct some_struct {

}struct_entity;

正如我对其命名所显示的那样, 这两个看起来相似但是, structAnotherName和struct_entity显然是不同的东西。

posted on 2011-08-03 23:00  seckcoder  阅读(117)  评论(0编辑  收藏  举报

导航