AiSD.Laba1/Stack/StackBooksOfArray.cs

32 lines
554 B
C#
Raw Permalink Normal View History

2023-02-15 14:40:58 +04:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2023-02-16 15:52:33 +04:00
namespace Stack
2023-02-15 14:40:58 +04:00
{
internal class StackBooksOfArray
{
private Book[] arrayBooks = new Book[1000];
private int lenght = 0;
public Book pop()
{
lenght--;
return arrayBooks[lenght];
}
public void push(Book newBook)
{
arrayBooks[lenght] = newBook;
lenght++;
}
public void sort()
{
}
}
}