Skip to content

Кусакин Алексей РИ-232701#44

Open
Lehohon wants to merge 9 commits intoLifeStyle28:mainfrom
Lehohon:main
Open

Кусакин Алексей РИ-232701#44
Lehohon wants to merge 9 commits intoLifeStyle28:mainfrom
Lehohon:main

Conversation

@Lehohon
Copy link
Copy Markdown

@Lehohon Lehohon commented Dec 30, 2024

No description provided.

Comment thread task3/circular_queue.cpp
{
// your implementation here
CircularQueue::CircularQueue(size_t size) : capacity(size), front(0), rear(0), count(0) {
buffer = new int[size];
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

нужен деструтор с очисткой памяти, иначе будет утечка

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants