Example #1
0
 public MySring[] DelString(int num)
 {
     num--;
     MySring[] _temptext = new MySring[c**t - 1];
     for (int i = num; i < c**t - 1; i++)
     {
         _text[i] = _text[i + 1];
     }
     for (int i = 0; i < c**t - 1; i++)
     {
         //if (num > c**t - 1) continue;
         _temptext[i] = _text[i];
     }
     c**t--;
     return(_temptext);
 }
Example #2
0
 public MySring[] PlussString(MySring str)
 {
     MySring[] _temptext = new MySring[c**t];
     for (int i = 0; i < c**t; i++)
     {
         _temptext[i] = _text[i];
     }
     _text = new MySring[c**t + 1];
     for (int i = 0; i < c**t; i++)
     {
         _text[i] = _temptext[i];
     }
     _text[c**t] = str;
     c**t++;
     return(_text);
 }