哪位高手帮小弟我看看这个程序 有什么有关问题 加下注释 最好详细点

谁帮我看看这个程序 有什么问题 加上注释 最好详细点!
#include <iostream>
using namespace std;

class Test{
public:
Test(int a){
Test::a = a;
}
friend Test operator + (Test&,int);
public:
int a;
};
Test operator + (Test &temp1,int temp2)
{
Test result(temp1.a + temp2);
return result;
}
inline Test operator + (int temp1,Test &temp2)
{
return temp2 + temp1;
}
int main()
{
Test a(100);
a = a+10;
a = 10+a;
cout<< a.a <<endl;
system("pause");
}

------解决方案--------------------
楼主给你个建议哈:下次再发代码的话,把版式排好,这样别人看着方便些,你说是不是,呵呵