给出下面程序的输出结果。
#include< iostream.h>
template
class Complex
{T real,image;
public
Complex(T a, T b): real(a){ image=b;}
Complex(T a){image=0,real=a;}
void pr()
{char c;
c=(image>0'+':'-');
if (image!=0)
cout< else Cout< } }; void main() {Complex a.pr() Complex b.pr(); }
订单号:
遇到问题请联系在线客服
订单号:
遇到问题请联系在线客服