主观

在下面程序中的答题纸上填上适当的程序,使程序的输出结果如下:  67,90  源程序如下:

#include ﹤iostream﹥

using namespace std;

class base

{

pnvate:

int x,y;

priblic:

void initxy(int a,int b){x=a;y=b;}

void show(base *p);

};

inline void base::show( _________ )

{

cout﹤﹤p-﹥x﹤﹤" "﹤﹤p-﹥y﹤﹤endl;

}

void print(base *p)

{

p-﹥show(p);

}

void main( )

{

base a;

a.initxy(67,90);

print( _________ );

}

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

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服