2019独角兽企业重金招聘Python工程师标准>>>
#include <iostream>
class C_A
{
public:
int Cn;
};
struct S_A
{
public:
int Sn;
};
enum E_A
{
En = 12
};
C_A operator+(int n,C_A cVar)
{
cVar.Cn += n;
return cVar;
}
S_A operator+(int n,S_A sVar)
{
sVar.Sn =10 ;
sVar.Sn += n;
return sVar;
}
E_A operator+(int n,E_A eVar)
{
eVar = En;
n += eVar;
eVar = E_A(n);
return eVar;
}
int main()
{
using std::cout;
using std::endl;
return 0;
}