Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void DeleteDossier(ref string[] fullName, ref string[] post)
- {
- Console.Write("Ввидите номер досье: ");
- int index = Convert.ToInt32(Console.ReadLine()) - 1;
- string[] Arrey;
- for (int i = 0; i < 2; i++)
- {
- if (i == 1)
- {
- Arrey = fullName;
- }
- else
- {
- Arrey = post;
- }
- string[] tempArrey = new string[Arrey.Length - 1];
- for (int j = 0; j < index; j++)
- {
- tempArrey[j] = Arrey[j];
- }
- for (int j = index; j < tempArrey.Length; j++)
- {
- tempArrey[i] = Arrey[i + 1];
- }
- if (i == 1)
- {
- fullName = tempArrey;
- }
- else
- {
- post = tempArrey;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement