摘要: #include#includeusing namespace std;class NaturalNumber{private:int n;public:void setValue (int x);//置数据成员n的值,要求判断是否是正整数int getValue(); //返回私有数据成员n的值b... 阅读全文