Zhimolostnova A.V. Lab work 8 #8

Closed
AnnZhimol wants to merge 4 commits from LabRab_8 into LabRab_7
Showing only changes of commit 58e4cce669 - Show all commits

View File

@ -23,12 +23,7 @@ namespace Warship
public int Insert(T warship)
{
if (Count >= _maxCount)
throw new StorageOverflowException(_maxCount);
_places.Insert(0, warship);
return 0;
return Insert(warship, 0);
}
public int Insert(T warship, int position)