Beispiel #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();
 }
Beispiel #2
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);
            }
        }
Beispiel #3
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);
        }