PIBD-14_Arinina_M.A._Simple_LabWork03 #15
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "LabWork03"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
LabWork03to PIBD-14_Arinina_M.A._Simple_LabWork03Проверено
@ -0,0 +47,4 @@
public T? Get(int position)
{
// TODO проверка позиции
if (position <= Count)
Не все проверки выхода за границы учтены
@ -0,0 +57,4 @@
public int Insert(T obj)
{
// TODO вставка в свободное место набора
for (int i = 0; i < Count; i++)
Правильнее было вызвать Insert(T obj, 0);
Pull request closed