主观

 #include "stdafx.h"

#include ﹤iostream﹥

using namespace std;

class Test

{

 int x, y;

public:

fun(int i, int j)

{

x=i; y=j;

 }

show( )

{

cout﹤﹤"x="﹤﹤x;

if(y)

cout﹤﹤" ,y="﹤﹤y﹤﹤endl;

cout﹤﹤endl;

}

};

void man( )

{

Test A;

A. fun (1);

A. show( );

A. fun(2,4);

A. show( );

}

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

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服