#include "iostream"
using namespace std;
class cat
{
public:
cat(){itsage=1;itsweight=5;}
int getage() const{return itsage;}
int getweight()const {return itsweight;}
void setage(int age){itsage=age;}
private:
int itsage,itsweight;
};
void main()
{
cat * familythree=new cat[500];
cout<<"cat[0]的地址: "<<&cat[0]<<endl;
cout<<"familythree保存的地址: "<<familythree;
}
编译不能通过,应该怎么修改