博客园 - 释晓然
uuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=181723
2012-06-05T15:34:12Z
释晓然
https://www.cnblogs.com/muxiaofei/
feed.cnblogs.com
https://www.cnblogs.com/muxiaofei/archive/2012/06/05/2537437.html
C++中的各种sizeof - 释晓然
源代码: 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
2012-06-05T15:12:00Z
2012-06-05T15:12:00Z
释晓然
https://www.cnblogs.com/muxiaofei/
【摘要】源代码: 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 <a href="https://www.cnblogs.com/muxiaofei/archive/2012/06/05/2537437.html" target="_blank">阅读全文</a>