摘要: #include<iostream> class Base { public: int x; }; class Derive : public Base { int y; }; void fun(Base* b) { b[1].x = 1; } int main() { Derive arr[5]; 阅读全文
posted @ 2024-03-19 16:44 HJfjfK 阅读(9) 评论(0) 推荐(0) 编辑