第1关:类外定义存取函数 本关仍然有一个Int类,该类包含一个int类型的成员。为其编写存取函数。注意,存取函数要在类外实现。 /********* Begin ********/ #include"Int.h" int Int::getValue()const { return value; } void Int::setValue(int v