#include
using namespace std;
class Tree{
public:
Tree(int a){age=a;}
void grow(int years);
void age();
private:
int ages;
};
void Tree::grow(int years)
{
cout<<"请输入年份:"<ages+=years;
};
void Tree::age()
{
cout<<"此树的年龄为:"<};
int main()
{
Tree t1;
t1.age();
t1.grow(3);
t1.age();
system("PAUSE");
return 0;
}