编写三个名为add的重载函数,分别实现两个整数、两个实数和两个复数相加。#includeiostreamusingnamespacestd;structplural{floatreal;floatimaginary;};intadd(intx,inty);floatadd(floatx,floaty);pluraladd(pluralx,pluraly);intmain(){intx1;floatx2;pluralx3;inta,b;cout整数a,b分别是endl;cinab;x1=add(a,b);cout整数a加整数b等于x1endl;floatc,d;cout实数c,d分别是endl;cincd;x2=add(c,d);cout实数c加实数d等于x2endl;plurale,f;cout复数e的实部虚部和复数f的实部虚部是endl;cine.reale.imaginaryf.realf.imaginary;x3=add(e,f);cout复数e加复数f等于x3.real+x3.imaginaryiendl;return0;}intadd(intx,inty){returnx+y;}floatadd(floatx,floaty){returnx+y;}pluraladd(pluralx,pluraly){pluralx3;x3.real=x.real+y.real;x3.imaginary=x.imaginary+y.imaginary;returnx3;}