摘要:
一直不清楚c++的sizeof,现在通过实验得到了一些了解。 1 #include 2 3 using namespace std; 4 5 class A{ 6 private: 7 char * a1; 8 // ! static int totalPeople=0; //error: ISO C++ forbids in-class initialization of non-const static member 'People::totalPeople'| 9 public :10 A(){11 a1 = (char *)new st... 阅读全文
posted @ 2013-10-15 08:40
youJumpILook
阅读(365)
评论(0)
推荐(0)
浙公网安备 33010602011771号