int main(void){ Shape shape; cout << sizeof(shape) << endl; //int *p = (int *)&shape; //cout << p << endl; //cout << (unsigned int)(*p) << endl; Circle circle(100); cout << sizeof(circle) << endl; //int *q = (int *)&circle; //cout << q << endl; //cout << (unsigned int)(*q) << endl; //q++; //cout << (unsigned int)(*q) << endl; system("pause"); return 0;}然后结果就显示18
添加回答
举报
0/150
提交
取消