C++ Data Structures: Queue

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 พ.ย. 2024

ความคิดเห็น • 4

  • @javierreyesg
    @javierreyesg 3 ปีที่แล้ว

    Unlike the other videos, this was not compiled... and some errors are arising when trying to run a simple test. I already made the C version working, but this C++ version still needs adjustments

    • @eom-dev
      @eom-dev  3 ปีที่แล้ว

      Yes, the library has changed quite a bit since I've made this video and the new code is available here:
      github.com/ericomeehan/libeom/blob/main/DataStructures/Lists/Queue.h
      Note that the library is now written in C. It should be compatible with C++, but I haven't tested that. Feel free to open a thread somewhere on my TH-cam, Discord, or GitHub regarding porting the library to C++.

    • @javierreyesg
      @javierreyesg 3 ปีที่แล้ว

      @@eom-dev The link you provided is for the C version. I have followed those, and they work ok. The issue is with this C++ version, specifically getting errors with the template usage. That's why I mention, the code in this video was never compiled or tested, unlike the other chapters. No rant or anything, just saying, maybe you can have a look.

    • @eom-dev
      @eom-dev  3 ปีที่แล้ว

      @@javierreyesg Yes, what I mean to say is that this version has been, if I may be so grandiose, deprecated in favor of the one provided in C. Largely due to the mistakes you mention. There is a video on my channel on the Queue written in C - I recommend checking that one out for more thoroughly tested code. It should be easy to find from the channel page (look for the Data Structures playlist with the purple thumbnail).