摘要:
源代码: 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 阅读全文