#include <iostream.h>
typedef class date{
int a,b,c;
public:
date(int a,int b,int c){
this->a=a;
this->b=b;
this->c=c;
}
void output(){
cout<<a<<endl<<b<<endl<<c<<endl;
}
} *mydate;
void main(){
mydate dt=new date(1,2,3); //new date;
dt->output();
}
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。