#include <iostream>
using namespace::std;
class MyClass
{
public:
MyClass(int a, int b)
{
this->a = a;
this->b = b;
}
void print_Myclass()
{
cout << this->a << '+' << b << 'i' << endl;
}
friend ostream & operator<<(ostream &os,
c++ 左移右移操作符重载
最新推荐文章于 2024-02-23 13:30:29 发布