Implementing a queue in C

preview_player
Показать описание
Source code can be found here:

===== Support us through our store =====

===== Check out our website =====

===== Check out our Discord server =====
Рекомендации по теме
Комментарии
Автор

I was having a hard time understanding the code for these concepts but you explain so well that i can easily understand. Thank you 💜

Shu-kaiHolliday
Автор

This program can be extended a function that dequeue a element while elements are more than capacity, and queue flush function. This will be more like queue used in android request. Implement this data structure in c++ with template will be more general and useful. Thanks hope you can implement more data structure in C.♥

descarteslancaster
Автор

You’re videos are perfect for beginners and also for experienced programmers who haven’t programmed C for many years like me.

Dequeueing could be also implemented with memcpy I guess, but I’m not sure if it’s safe.

zuzukouzina-original
Автор

Afaik, you could do your queue more optimized while dequeueing by just moving its pointer

grenadier
Автор

Great content, keep up the good work!

luigy
Автор

You're doing it the hard way, it's much easier with vectors. using push_back and pop_back

clamato
Автор

Quite a costly operation here swaping all the elements ahead of the first one.

throatwobblermangrove
Автор

Great explanation of the implementation of Queue. I have a question : What do you use to compile your C code ? Apparently, you use WSL server but I am not sure. Could you explain me exactly and how you did it to install.

carlgaussrugero
Автор

Your expression is very good, Could you write a detailed code sample about queue and stack

bulentoral
Автор

Hey, before calling the removeFromQueue() the queue state was 1 2 3 5. As you mentioned, after calling the removeFromQueue we expect 2 3 5 (this is quite normal I guess)? But we can see from the console output in the video that this is not the case, because again the queue state remain unchanged- 1 2 3 5. Is this correct?

stanislaven
Автор

What's the value of queue[3] after "removing" the first element? You forgot to void this position?

kapilrakh
Автор

Could you also make a video of installing vs on Linux and Integrating it with gdb? it would really be helpful to practice all these in that.

animeshkumarsinha
Автор

Can you do a video about useful shorcut when coding. I want to type fast but alway use mouse to interact.

minercreepmc
Автор

i was taught to use rear and front without count....

finncollins
Автор

my brother thanks for the nice explanation i really need your help i have a exam at school i have to make a game like cnady crush i dont know how to do it could you help me with thats please

javedahmadi