C# troll uygulama

Her dilin kendi Syntax'ı vardır. Bu C# dili ile yazılmış bir program. Başka bir dilin derleyicisi ile çalıştıramazsınız.
Düzelttiğim kodu dener misiniz?
C#:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            while (true)
            {
            ConsoleKeyInfo tus = new ConsoleKeyInfo();
            Console.Write("Alıcı : ");
            string a = "";
            string b = "";

            
                for (int i = 0; i <= 100; i++)
                {
                    tus = Console.ReadKey(true);
                    if (tus.Key == ConsoleKey.Enter) { goto bul; }
                    if (tus.Key == ConsoleKey.Oem4) { a = a + "Ğ"; goto bul; }
                    if (tus.Key == ConsoleKey.OemPeriod) { a = a + "."; goto bul; }
                    if (tus.Key == ConsoleKey.Oem6) { a = a + "Ü"; goto bul; }
                    if (tus.Key == ConsoleKey.Oem1) { a = a + "Ş"; goto bul; }
                    if (tus.Key == ConsoleKey.Oem7) { a = a + "İ"; goto bul; }
                    if (tus.Key == ConsoleKey.Oem2) { a = a + "Ö"; goto bul; }
                    if (tus.Key == ConsoleKey.Oem5) { a = a + "Ç"; goto bul; }
                    if (tus.Key == ConsoleKey.D1) { a = a + "1"; goto bul; }
                    if (tus.Key == ConsoleKey.D2) { a = a + "2"; goto bul; }
                    if (tus.Key == ConsoleKey.D3) { a = a + "3"; goto bul; }
                    if (tus.Key == ConsoleKey.D4) { a = a + "4"; goto bul; }
                    if (tus.Key == ConsoleKey.D5) { a = a + "5"; goto bul; }
                    if (tus.Key == ConsoleKey.D6) { a = a + "6"; goto bul; }
                    if (tus.Key == ConsoleKey.D7) { a = a + "7"; goto bul; }
                    if (tus.Key == ConsoleKey.D8) { a = a + "8"; goto bul; }
                    if (tus.Key == ConsoleKey.D9) { a = a + "9"; goto bul; }
                    if (tus.Key == ConsoleKey.D0) { a = a + "0"; goto bul; }
                    if (tus.Key == ConsoleKey.Spacebar) { a = a + " "; }
                    if (tus.Key != ConsoleKey.Spacebar) { a = a + tus.Key; }


                bul: switch (i)
                    {
                        case 1:
                            b = b + "O";
                            break;
                        case 2:
                            b = b + "r";
                            break;
                        case 3:
                            b = b + "k";
                            break;
                        case 4:
                            b = b + "u";
                            break;
                        case 5:
                            b = b + "n";
                            break;
                        case 6:
                            b = b + "_";
                            break;
                        case 7:
                            b = b + "Y";
                            break;
                        case 8:
                            b = b + "ı";
                            break;
                        case 9:
                            b = b + "l";
                            break;
                        case 10:
                            b = b + "m";
                            break;
                        case 11:
                            b = b + "a";
                            break;
                        case 12:
                            b = b + "z";
                            break;
                        default:
                            if (tus.Key != ConsoleKey.Enter) { b = b + " "; }
                            if (tus.Key == ConsoleKey.Enter) { i = 101; }
                            break;
                    }

                    Console.Write(" Alıcı : ");
                    Console.Clear();
                    Console.Write("Alıcı : ");
                    Console.Write(b);




                }
                Console.WriteLine();
                Console.Write("Soru : ");
                Console.ReadLine();
                for (int döngü = 0; döngü <= 10; döngü++) { System.Threading.Thread.Sleep(10); Console.Write("|"); }
                Console.WriteLine("    {0}", a);
                Console.ReadKey();

            }
            
        }               
        }
    }
 

Yeni konular

Geri
Yukarı