#include <iostream> using namespace std; int f; class CDemo{ private: const int num; //常數型成員變數 int & ref; //參照型成員變數 int value; public: CDemo(int n): num(n), ref(f), value(4) { } }; int main(){ cout << sizeof(CDemo) << endl; return 0; }