生成注册码的一种算法
public static string GetSN(string str)
{
string strResult="";//作为返回的字符串
StringBuilder sbTemp=new StringBuilder();
{
string strResult="";//作为返回的字符串
StringBuilder sbTemp=new StringBuilder();
//生成注册码
for (int i = 0; i < str.Length; i++)
{
int tIn = str[i] % 10;
string tCh = tIn.ToString();
sbTemp.Append(tCh);
for (int i = 0; i < str.Length; i++)
{
int tIn = str[i] % 10;
string tCh = tIn.ToString();
sbTemp.Append(tCh);
}
strResult = sbTemp.ToString();
strResult = sbTemp.ToString();
return strResult;
}
}