Hehe I managed to finally finish the program that changes decimal to unicode.
Nice. I finally got home after being stuck in a car all day.
It's always nice to get home huhu
But I am glad I figured out my homework. I spent the better part of like 2 hours trying to figure out this short code x.x
(Ignore the things that start with "//" That's just what my homework is, the numbers I needed to change into unicode, and the actual unicode I got from the numbers.)
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;
namespace Uebung10_UnicodeDecoder { class Program { static void Main(string[] args) { //Erstellen Sie ein C#-Programm, das die Eingabe einer ganzen Zahl (int) //über Tastatur erwartet und das das dazugehörige Unicode-Zeichen liefert. //Decodieren Sie mit Hilfe ihres Programms die Zahlenfolge:
//76, 65, 78, 45, 80, 97, 114, 116, 121: //L A N - P a r t y
//105, 109 //i m
//98, 105, 98 //b i b
int n = 1; while (n++ < 100) { int d; Console.Write("Decimal to convert?: ") d = Convert.ToInt32(Console.ReadLine())
char u; u = Convert.ToChar(d)
Console.WriteLine(u) }
} } }
Posted: Tue Nov 10, 2015 10:58 pm
lXl Tempus Temporis lXl
Leprechaun_Sean
He's not as hopeless as I thought he was.
The moment I notice Temp is younger than me. I win by like two years.