主观

#include﹤iostream.h﹥

class Student{

int x=0,y=0;

public:

Student( ){

x=1;  y=1;

}

Student(int a,int b){

x=a;

y=b;

}

void get( ){

cout﹤﹤x﹤﹤" "﹤﹤y﹤﹤endl;

}

} ;

int main( ){

Student student(5,6);

student.get( );

}

参考答案
您可能感兴趣的试题
¥

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服