摘要: 源代码: 1 #include <iostream> 2 using namespace std; 3 4 #define SIZEOF(x) cout<<"sizeof("<<#x<<"):"<<sizeof(x)<<endl 5 6 struct EMPTY_STRUCT 7 { 8 }; 9 10 class EMPTY_CLASS11 {12 };13 14 int main() {15 SIZEOF(bool);16 SIZEOF(char);17 SIZEOF(unsig 阅读全文
posted @ 2012-06-05 23:12 释晓然 阅读(304) 评论(0) 推荐(0) 编辑