1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #if(0)
- #include <iostream>
- class Person
- {
-
- int m_A;
- static int m_B;
-
- void func()
- {
- }
- static void func2()
- {
- }
- };
- int Person::m_B = 0;
- void test01()
- {
- Person p;
-
-
-
- std::cout << "size of p = " << sizeof(p) << std::endl;
- }
- void test02()
- {
- Person p;
- std::cout << "size of p = " << sizeof(p) << std::endl;
- }
- int main()
- {
-
- test02();
- system("pause");
- return 0;
- }
- #endif
|