c++->左シフト&&右シフト演算子リロード

521 ワード

#include 

using namespace std;

class Complex
{
private:
    int a;
    int b;
    //friend void operator<a = a;
        this->b = b;
    }


    void printCom()
    {
        cout << a << "+" << b << "i" << endl;
    }
};

//      
/*
//               :cout << c1 << "23333" <