发布网友 发布时间:2022-04-24 14:38
共1个回答
热心网友 时间:2023-07-08 15:45
Seals one people kind, its data member has name, ages and the structure function, getage (). Derives the student kind from this again, has data member color (skin color to suppose is enumeration type, supposition has black, white, the yellow three kind of colors) and the structure function, getcolor () the function. Defines a student kind of object and outputs this object the name, the age, the skin color.