Beispiel #1
0
 public objBebidas1(string strBebida, string strMarca, tring strPrecio, tring strFecha)
 {
     this.strBebida = strBebida;
     this.strMarca  = strMarca;
     this.strPrecio = strPrecio;
     this.strFecha  = strFecha;
 }
Beispiel #2
0
        private void btnSatinAl_Click(object sender, EventArgs e)
        {
            tring fatura = "Satın Aldıklarınız \n";

            for (int i = 0; i < lvSepet.Items.Count; i++)
            {
                fatura += lvSepet.Items[i].Text + " - " + lvSepet.Items[i].SubItems[1].Text + " TL" + "\n";
            }
            MessageBox.Show(fatura);
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            tring snakeladder     = null;
            int   start           = 0;
            int   max             = 100;
            int   current_score   = 0;
            int   currentposition = start;

            Console.WriteLine(" welcome to the snakeladder game:");
            Console.WriteLine("Do you want to play snake ladder");
            Console.ReadLine();
        }
Beispiel #4
0
        static void Main(string[] args)
        {
            tring s = "[*]";                         //  один экземпляр star triangle
            int   a = int.Parse(Console.ReadLine()); //  Вводим число

            for (int i = 1; i <= a; i++)             //      используем loop в loop-е
            {                                        //
                for (int j = 1; j <= i; j++)         //
                {
                    Console.Write(s);                // выводим возрастающее каждой итерацией startriangle
                }
                Console.WriteLine();                 //  переход в следующую строку
            }
            Console.ReadLine();
        }
        static void Main(string[] args)
        {
            tring nome = "";
            int idade = 0;


            Console.WriteLine("Você é Homem ou Mulher?");
            nome = Console.ReadLine();

            if (nome == "mulher")
            {
                Console.WriteLine("Quantos ano você tem?");
                idade = int.Parse(Console.ReadLine());


            }
            else
            {
                Console.WriteLine("Você é Homem então paga entrada!");
                Console.WriteLine("Entrada gratis somente para Mulheres!");

            }



            if (nome == "mulher" && idade >= 25)
            {
                Console.WriteLine(" Você tem acima de 25 anos, sua entrada é gratis!");

                Console.WriteLine("Obrigada! pela preferencia!");
            }
            else
            {
                Console.WriteLine("Não conrespode as exigencias!");
            }



            Console.ReadLine();
        }
Beispiel #6
0
    public int MinMutation(string start, string end, string[] bank)
    {
        if (start.equals(end)) return 0;

        var bankSet = new HashSet<string>();
        foreach (var gene in bank)
        {
            bankSet.Add(gene);
        }

        char[] charSet = new char[] { 'A', 'C', 'G', 'T' };
        int level = 0;

        var visited = new HashSet<String>();
        var queue = new Queue<string>();

        queue.Enqueue(start);
        visited.Add(start);

        while (queue.Count() > 0)
        {
            int size = queue.Count();
            while (size-- > 0)
            {
                string curr = queue.Dequeue();
                if (curr.Equals(end)) return level;
                var currArray = curr.toCharArray();
                for (int i = 0; i < currArray.Length; i++)
                {
                    char old = currArray[i];
                    foreach (char c in charSet)
                    {
                        currArray[i] = c;
                        String next = new tring(currArray);
                    }
                }
            }
        }
    }
    // Start is called before the first frame update
    void Start()
    {
        instance = this;

        DontDestroyOnLoad(this.gameObject);



#if UNITY_ANDROID
        string appId = androidAppID;
#elif UNITY_IPHONE
        string appId = IOSAppID;
#else
        tring appId = "unexpected_platform";
#endif

        // Initialize the Google Mobile Ads SDK.
        MobileAds.Initialize(appId);


        //Request Interstitial
        RequestInterstitial();

        //Request Banner
        this.RequestBanner();


        //Request Rewarded Video
        // Get singleton reward based video ad reference.
        this.rewardBasedVideo = RewardBasedVideoAd.Instance;

        // Called when the user should be rewarded for watching a video.
        rewardBasedVideo.OnAdRewarded += HandleRewardBasedVideoRewarded;

        this.RequestRewardBasedVideo();
    }
 public static MvcHtmlString CustomActionLink(this HtmlHelper htmlHelper, tring linkText, string actionName, string controllerName)
 {
     return new MvcHtmlString(String.Format("<a href='http://myUrl.com/{0}/{1}'>{2}</a>", controllerName, actionName, linkText));
 }