using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
/// <summary>
/// fuhao 的摘要说明
/// </summary>
public class fuhao
{
private string thc;
private int age;
public fuhao()
{
}
public fuhao(string nthc, int nage)
{
this.thc = nthc;
this.age = nage;
}
public string getthc()
{
return this.thc;
}
public int getage()
{
return this.age;
}
public static bool operator ==(fuhao a, fuhao b)
{
if (a.thc == b.thc && a.age == b.age)
{
return true;
}
else
return false;
}
public static bool operator !=(fuhao a, fuhao b)
{
return !(a == b);
}
public static string operator+(fuhao a,fuhao b)
{
return "</br>" + a.thc + a.age + "</br>" + b.thc + b.age + "岁";
}
}