c++ operator

问题描述:

c++ operator
定义一个class > my_int
下面提供MAIN函数参数,哪位高手帮我把CLASS完成?
int main(void){
my_int a,b,c;
my_int plus,minus,product,divide,asso;
cin >> a;
cin >> b;
cin >> c;
plus = a+b;
minus = a-b;
product = a*b;
divide = a/b;
asso = a*b-c;
cout

给你一段代码,已经测试过的了,给我最佳啊#include #include using namespace std;class my_int {public: my_int(){}; my_int (double m) {n = m; } my_int operator + (const my_int& a); my_int operator - (cons...