摘要:
sizeof()是c++的运算符,返回变量或者类型占用的字节数。如sizeof(int) 为4,sizeof(char) 为1。那么类大小呢,如1 class A {2 char a;3 short b;4 int c;5 }那么sizeof(A)为多少,结果是8。char占用一字节,b... 阅读全文
posted @ 2014-08-05 16:58
李广难封
阅读(306)
评论(0)
推荐(1)