Determining the Size of a Class Object----sizeof(class)
摘要:
Determining the Size of a Class ObjectBy Girish ShettyThere are many factors that decide the size of an object of a class in C++. These factors are:Size of all non-static data members Order of data members Byte alignment or byte padding Size of its immediate base class The existence of virtual funct 阅读全文
posted @ 2011-08-02 17:53 原来... 阅读(690) 评论(0) 推荐(0) 编辑