Pibd-14_Eredavkin.R.A_Cours.../CourseWorkEreda копия/ArrayDequeState.cs
2024-05-27 17:45:42 +04:00

32 lines
667 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CourseWork_EredavkinRA
{
public enum Operation
{
pushBack, pushFront, popBack, popFront, None = -1
}
public class ArrayDequeState
{
public Operation operation;
public int[] Array { get; }
public int Top;
public int Size;
public ArrayDequeState(int[] array, int top, Operation oper = Operation.None)
{
operation = oper;
Array = array;
Top = top;
Size = array.Length;
}
}
}