给出下面程序的输出结果。
#include
template
class Num
{T x,y;
public:
Num(T i,T j=0){x=i;y=j;}
void set(T i,T j=0){x=i;y=j;}
void show()
{cout< if(y!=0) cout<<(y>0'+':'-')<<(y>0?y:-y)<'i'; cout< } }; void main() {Num n.show(); n.set(2,3); n.show(); Num m.show(); }
订单号:
遇到问题请联系在线客服
订单号:
遇到问题请联系在线客服