Chinaunix首页 | 论坛 | 博客
  • 博客访问: 102431
  • 博文数量: 35
  • 博客积分: 637
  • 博客等级: 上士
  • 技术积分: 290
  • 用 户 组: 普通用户
  • 注册时间: 2012-08-15 17:22
文章分类

全部博文(35)

文章存档

2015年(6)

2014年(1)

2013年(3)

2012年(25)

我的朋友

分类: C/C++

2013-01-03 17:35:36

Describes an object that stores an ordered pair of objects both of type double, the first representing the real part of a complex number and the second representing the imaginary part.

template<> class complex { public: complex( double _RealVal = 0, double _ImagVal = 0 ); complex( const complex& _ComplexNum ); explicit complex( const complex& _ComplexNum ); // rest same as template class complex };
_RealVal

The value of type double for the real part of the complex number being constructed.

_ImagVal

The value of type double for the imaginary part of the complex number being constructed.

_ComplexNum

The complex number of type float or of type long double whose real and imaginary parts are used to initialize a complex number of type double being constructed.

阅读(1198) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~