文章
132
粉丝
19
获赞
402
访问
60.7k
 
#include<iostream>
#include<string>
#include<iomanip>
using namespace std;
class fushu{
    public:
        double a,b;
        fushu(double x,double y):a(x),b(y){}
        fushu operator+(fushu &A)const{
            fushu t(a+A.a,b+A.b);
            return t;
        }
};
int main(){
    int m;
    cin>>m;
    while(m--){
        double a,b,c,d;
        cin>>a>>b>>c>>d;
        fushu A(a,b),B(c,d);
        fushu t=A+B;
        if(t.b>0)
            c...
登录后发布评论
暂无评论,来抢沙发