Update: See the quine nicely formatted
ein quine in c# erstellt.
Die Lösung um das "string b = " auszugeben ist nicht besonders schön....
--- SNIP --- SNIP ----
using System; class MainApp { public static void Main() { char q = Convert.ToChar(34); string var = string.Concat(Convert.ToChar(115), Convert.ToChar(116), Convert.ToChar(114), Convert.ToChar(105), Convert.ToChar(110), Convert.ToChar(103), Convert.ToChar(32), Convert.ToChar(98), Convert.ToChar(32), Convert.ToChar(61)); char s = ';'; string a = "using System; class MainApp { public static void Main() { char q = Convert.ToChar(34); string var = string.Concat(Convert.ToChar(115), Convert.ToChar(116), Convert.ToChar(114), Convert.ToChar(105), Convert.ToChar(110), Convert.ToChar(103), Convert.ToChar(32), Convert.ToChar(98), Convert.ToChar(32), Convert.ToChar(61)); char s = ';'; string a = "; string b ="Console.WriteLine(a + q + a + q + s);Console.WriteLine( var + q + b + q + s + b); } }";Console.WriteLine(a + q + a + q + s);Console.WriteLine( var + q + b + q + s + b); } }
1 comment:
I created a C# quine that is as short as i could get it in the few mins that i worked on it for... check it out here
Post a Comment