using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace tsjzj
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int[] int_0 = new int[127];
int[] int_1 = new int[25];
char[] char_0 = new char[25];
string Jqtext = textBox1.Text;
string Zctext = "";
char_0 = new char[Jqtext.Length];
int_1 = new int[Jqtext.Length];
textBox2.Text = Zctext;
for (int i = 1; i < char_0.Length; i++)
{
char_0[i] = Convert.ToChar(Jqtext.Substring(i - 1, 1));
}
for (int j = 1; j < int_1.Length; j++)
{
int_1[j] = int_0[Convert.ToInt32(char_0[j])] + Convert.ToInt32(char_0[j]);
}
for (int k = 1; k < int_1.Length; k++)
{
if (int_1[k] >= 48 && int_1[k] <= 57)
{
Zctext += Convert.ToChar(int_1[k]).ToString();
}
else if (int_1[k] >= 65 && int_1[k] <= 90)
{
Zctext += Convert.ToChar(int_1[k]).ToString();
}
else if (int_1[k] >= 97 && int_1[k] <= 122)
{
Zctext += Convert.ToChar(int_1[k]).ToString();
}
else if (int_1[k] > 122)
{
Zctext += Convert.ToChar(int_1[k] - 10).ToString();
}
else
{
Zctext += Convert.ToChar(int_1[k] - 9).ToString();
}
}
textBox2.Text = Zctext;
}
}
}