Hallo,
ich möchte in einer Konsolen Anwendung ein Text eingeben und der soll das durch Zahlen/Buchstaben ersetzt werden.
Und das ganze auch umgekehrt.
Ich hab es mit Replace gemacht:
ich möchte in einer Konsolen Anwendung ein Text eingeben und der soll das durch Zahlen/Buchstaben ersetzt werden.
Und das ganze auch umgekehrt.
Ich hab es mit Replace gemacht:
VB.NET-Quellcode
- temp = temp.Replace("a", "5")
- temp = temp.Replace("b", "9")
- temp = temp.Replace("c", "2")
- temp = temp.Replace("d", "t")
- temp = temp.Replace("e", "w")
- temp = temp.Replace("f", "z")
- temp = temp.Replace("g", "8")
- temp = temp.Replace("h", "i")
- temp = temp.Replace("i", "0")
- temp = temp.Replace("j", "o")
- temp = temp.Replace("k", "j")
- temp = temp.Replace("l", "0r")
- temp = temp.Replace("m", "9-")
- temp = temp.Replace("n", "h")
- temp = temp.Replace("o", "1")
- temp = temp.Replace("p", "fr")
- temp = temp.Replace("q", "s")
- temp = temp.Replace("r", "7")
- temp = temp.Replace("s", "3")
- temp = temp.Replace("t", "6.")
- temp = temp.Replace("u", "u")
- temp = temp.Replace("v", "d")
- temp = temp.Replace("w", "r")
- temp = temp.Replace("x", "e")
- temp = temp.Replace("y", "a")
- temp = temp.Replace("z", "f")