?? complex.hpp
字號:
#pragma once
#include <iostream>
class Complex
{
private:
double real;
double imag;
public:
template< typename Type >
Complex( Type const&, Type const& );
template< typename Type >
Complex( Type const& );
Complex();
double GetReal() const;
double GetImag() const;
void SetReal( double );
void SetImag( double );
friend
std::ostream& operator << ( std::ostream&, Complex const& );
template< typename Type >
friend Complex operator+( Type const&, Complex const& );
template< typename Type >
friend Complex operator-( Type const&, Complex const& );
template< typename Type >
friend Complex operator*( Type const&, Complex const& );
template< typename Type >
friend Complex operator/( Type const&, Complex const& );
template< typename Type >
friend Complex operator+( Complex const&, Type const& );
template< typename Type >
friend Complex operator-( Complex const&, Type const& );
template< typename Type >
friend Complex operator*( Complex const&, Type const& );
template< typename Type >
friend Complex operator/( Complex const&, Type const& );
friend
Complex operator+ ( Complex const&, Complex const& );
friend
Complex operator- ( Complex const&, Complex const& );
friend
Complex operator* ( Complex const&, Complex const& );
friend
Complex operator/ ( Complex const&, Complex const& );
};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -