Exemplo n.º 1
0
 private void solutionButton_Click(object sender, EventArgs e)
 {
     int[] result = subsequence.FindSubsequence(
         MasStringsUtilits.StrToArray <int>(arrayInputTB.Text));
     outputTB.Text     = MasStringsUtilits.ArrayToStr <int>(result, "\t");
     firstIndexTB.Text = subsequence.firstIndex.ToString();
     legtnTB.Text      = result.Length.ToString();
 }
Exemplo n.º 2
0
        private void Changebutton_Click(object sender, EventArgs e)
        {
            List <int>   list1   = MasStringsUtilits.StrToList(ListOneTextBox.Text);
            List <int>   list2   = MasStringsUtilits.StrToList(ListTwoTextBox.Text);
            ClassArrList obj     = new ClassArrList(list1);
            List <int>   newlist = obj.Create(list2);

            ResultTextBox.Text = MasStringsUtilits.ListToStr(newlist);
        }
Exemplo n.º 3
0
        private void CreatNewString_Click(object sender, EventArgs e)
        {
            int[]    arr = MasStringsUtilits.StrToArray <int>(FirstBox.Text);
            ClassArr obj = new ClassArr(arr);

            int[] newArr = obj.Put(Convert.ToInt32(Long.Text));
            if (newArr != null)
            {
                OuttextBox.Text = MasStringsUtilits.ArrayToStr <int>(newArr);
            }
        }
Exemplo n.º 4
0
        private void Changebutton_Click(object sender, EventArgs e)
        {
            char[]       massiv = MasStringsUtilits.StrToArray1(InputTextBox.Text);
            ClassArrChar obj    = new ClassArrChar(massiv);

            char[] newMassiv = new Char[massiv.Length];
            int    n         = 0;

            obj.ChangePlusMinus(out newMassiv, out n);
            string str = MasStringsUtilits.ArrayToStr <Char>(newMassiv);

            OutTextBox.Text = str;
            CountBox.Text   = Convert.ToString(n);
        }