//代表一个复数
template<typename _Tp> class Complex
{
public:
    //! constructors
    Complex();
    Complex( _Tp _re, _Tp _im=0 );
    Complex( const std::complex<_Tp>& c );
    //! conversion to another data type
    template<typename T2> operator Complex<T2>() const;
    //! conjugation
    Complex conj() const;
    //! conversion to std::complex
    operator std::complex<_Tp>() const;
    _Tp re, im; //< the real and the imaginary parts
};




相关文章:

  • 2021-07-25
  • 2022-12-23
  • 2021-10-25
  • 2022-03-10
  • 2022-02-23
  • 2022-12-23
  • 2022-02-17
猜你喜欢
  • 2021-12-27
  • 2021-08-03
  • 2022-01-16
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
  • 2022-01-03
相关资源
相似解决方案