私は、私のループコードのfoの結果を表示するには問題があり、これは私のコードどのようにC#でテキストボックスに各ループを表示できますか?
private int n = 689;
private int e = 41;
private int d = 137;
public void enkrip()
{
string text = "indra";
byte[] asciiBytes = Encoding.ASCII.GetBytes(text);
for (int i = 0; i < text.Length; i++)
{
int vout = Convert.ToInt32(asciiBytes[i]);
int c = (int)BigInteger.ModPow(vout, e, n);
char cipher = Convert.ToChar(c);
textBox2.Text = char.ToString(cipher);
}
}
ですが、それは、テキストボックスに任意のヘルプを表示されませんか?
。 'メソッドを直接' char'クラスから呼び出すのではなく –