• 2022-06-12
    以下程序片断是否正确? #include "iostream.h" class Person { private: int m_nAge;[br][/br] public:[br][/br] int GetAge();[br][/br] };[br][/br] int Person:: GetAge() { return m_nAge; } void main()[br][/br] { Person person1; person1.m_nAge=10; cout<
  • 举一反三