📚 Learn how to solve problems and build projects with these Free E-Books ⬇️ C++ Lambdas e-book - free download here: bit.ly/freeCppE-Book Entire Object-Pascal step-by-step guide - free download here: bit.ly/FreeObjectPascalEbook 🚀📈💻🔥 My Practical Programming Course: www.codebeautyacademy.com/ Experience the power of practical learning, gain career-ready skills, and start building real applications! This is a step-by-step course designed to take you from beginner to expert in no time! 💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10). Use it quickly, because it will be available for a limited time.
Thank you so much, I didn't have much knowledge about pointers to begin with, yet your explanation was so nice that I didn't need to revisit it at all.
I recently discovered your channel and I just have to say that you are doing an amazing job with these videos. You have a great teaching style and I love the way you use practical examples to illustrate concepts. I use C++ when working with microcontrollers like the Arduino, and while there are a few syntax differences it is very similar, so your videos have been a great resource. I know you get many requests for other languages as well, and as a RU-vidr myself I understand that it's impossible to entertain them all. If I were to make a request I would love to see you do a series on Python after you conclude the C++ tutorial series. So you can add that to the list! I wish you every success with your RU-vid channel.
Thank you so much for that comment! I really put a lot of work into these videos, especially to overcome the foreign language obstacle, so I appreciate very much the support that I get. I have a lot of TODO videos, and I also have to be honest and say that Pythons is not my strongest language. I was planning to focus on C++, C#, and JS mostly because those are the languages that I use the most, but I don't have any fixed plan for the future. Are you interested in those maybe? I wish you the best of luck with Arduino programming and a lot of success with your channel as well. 🤞🧡🧡
@@CodeBeauty Well I would say that you have definitely overcome the foreign language obstacle, your English is excellent. I certainly will be interested in seeing more of your C++ videos and look forward to the JavaScript ones, I have familiarity with both languages but it has been a few years since I used JS, so I'm sure I'll learn something. Keep up the great work Saldina, I predict that you'll soon have a RU-vid Silver Play Button to hang on your wall!
@@CodeBeauty Guess what your English is more understandable than (no offense) other programming RU-vidrs. I really appreciate your effort and we will continue supporting you.
By far the best video I've seen on link lists and the implementation of them in C++. Oh my god so many videos go into understanding what they are, but never teach what an implementation of them look like especially the syntax when being introduced to new syntax like -> which I wasn't aware of, or how you need to link your link list otherwise it's no longer a link list. This is a lifesaver and doesn't start with some syntax that no one has ever seen before and keeps it basic. If you go into anything a bit weird its explained. Thank you so much for the video it was super helpful in understanding what implementation of a link list looks like in C++.
You're the only one that finally made this understandable to me. Thank you so much plz continue this series !! I would like to see the series upgrade to the intermediate level. Thank you again, Saldina!
Thank you so much!!!!! This video was so helpful in helping me study for finals as well as understanding my data structures class. You made this concept so much easier to understand than my professor.
// Example program #include using namespace std; class Node { public: int Value; Node* Next; }; void printlist(Node*n) { while (n!=NULL) { cout Value Value = 1; head->Next =second; second->Value = 2; second->Next = third; third->Value = 3; third->Next = four; four->Value = 4; four->Next = NULL; // i want to know the issue at this line of this code printlist(head); }
Maybe it is not such a good idea to directly overwrite whatever pointer we pass onto that printList function. After the function is complete, whatever pointer we passed to it as argument will now be NULL, so head will be NULL which means we more or less just discarded our whole linked list, correct me if I'm wrong please.
If people don't want to use public variables in a class (not pretty cool to use public variables in classes and not so great to practice) they can check this code right here. I did some OOP things: class Nod { // Nod = Node in my language int valoare; // valoare = value in my language Nod* next; public: // I did a constructor also to avoid making a very big column of initializations. If I don't pass the next Node, then the default value is a nullptr; Nod(int valoare, Nod *next = nullptr) : valoare(valoare), next(next) {} // Here are some getters and setters that can access the private variables. void setValoare(int valoare) { Nod::valoare = valoare; } void setNext(Nod *next) { Nod::next = next; } int getValoare() const { return valoare; } Nod *getNext() const { return next; } }; void printList(Nod* n) { while(n){ std::coutgetValoare() getNext(); // This is a pointer so that's why you can do this. } } int main() { // linked list example with 4 elements: Nod* head = new Nod(1); Nod* second = new Nod(2); Nod* third = new Nod(3); Nod* last = new Nod(4); // here I was pretty lazy to implement the pointer in constructor thing (the stuff you need to pass as a parameter to the construct to point to the next node) so I did this: head->setNext(second); second->setNext(third); third->setNext(last); printList(head); // std::cout
Fot that printList function, some kind of while loop seemed like the obvious solution. But I also got it working with an if statement and recursion. Making a function call itself just feels cool to me.
@@CodeBeauty I second Milka's comment! I've spent a ridiculous amount of time (hours) reading and rereading my text book to understand linked lists and you very eloquently showed me in a matter of minutes. Thank you and keep up the great work! I will be following you for more C++ videos as this has been a trouble language for me to pick up. Best of Luck!
I caught the beginning but was distracted through the middle. I caught the question, my answer was "It needs the Head. It requires a basis, a point of reference from which to start". I start my degree next week, and even though I have no previous experience, when you said the answer was the same as mine I cannot express the joy I felt. Thanks so much for taking the time to make videos like this. It may seem like "revision" to someone familiar, but to someone like me (and your recommendations on learning Java at the start), I don't know it's hard to explain. But you're so damn attractive I can't concentrate lol and it's mostly why I was walking around listening half the time. I can never look at Batman the same way again. However, I'm sure I'll manage :) In all serious, you're wonderful. You and many others like you ( e.g. freecodecamp) have really opened my eyes to a wonderful new world for me to explore. I'm so excited! Please, don't stop. Any of you.
I am so happy to see different ethnicities, nations, genders, religions... on my channel. 🙏💙 I grew up in a multicultural environment and I can say that it made me more tolerant, and open, and it gave me a wider world view!! 🌐🤗
very informative video , but i had trouble understanding why you declared the node class objects as pointers, you could have made normal objects and it will still be a linked list because there is always a Next pointer inside the node class
Hi Saldina... I am not able to find casting operator video. I am following your 10 hour C++ tutorial, but in Switch Case statement part 1 (03:01:00), you said you already made a video on casting operator. But that video is not a part of 10 hour tutorial. Please help.
Wow, thank you for the brilliant explanation! You make everything sound so simple. I have only ever used std::list, so to understand how linked lists actually work under the bonnet really helps.
truthfully speaking, you're dropdead gorgeous from my point of view. Thank you madam for dedicating your time to making this video that is perfect to the most minute detail!
Loveeeeee the explaination. I feel like you do a good job in explaining the things that sometimes are pushed under the rug and that is sometimes the difference between feeling completely stuck vs finally understanding an otherwise simple concept.
I think it's a way to create a new node just like how you would create a new object. It's like creating an object called dog from an Animal class(Animal dog = new Animal("woof")). Since she didn't make a node constructor that takes in private variables, the "new node();" does not need any arguments in the parenthesis. In short, "new node();" is a way to create a new node in the Linked List. I assume you're more familiar with creating classes in a format like "Class A();" instead of "Class A = new Class();". This does bring a good question as I don't know what would happen if you take out "new node();" (I'm less familiar with Linked Lists, so I'm just saying what I know).
@@namansharma7328 You're welcome. I'm not that experienced in LinkedList but starting from a simple standpoint when you create pointers, you always have to put the * before the variable name but after the data type. That helps the program know that the variable is a pointer. Unlike pointers, to create an array, you have to put the [] after the variable name but before the =. In the case of using a pointer for a node, I think conceptually, it's for the head to point to the next node of the LinkedList. This is a way to traverse through the LinkedList because without using pointers, you won't be able to access the data of the next node or any node. I have yet to actually create my own LinkedList *and* have a full understanding of it.
I was really tired all unnecessary fency computer science terminological words this video keeps really simple so easy to understand thank you Code Beauty.
please make a linked list playlist that explores everything about linked lists like insertion in middle, anywhere, back, front,, double linked lists, applications of double linked lists, cyclic linked lists, application of cyclic linked lists, answering coding questions related to linked lists, etc... My prof said that linked lists are the most common form of interview questions when it comes to applying to jobs that are related to programming.
I watched other random videos of linked list before I came to this video but my all doubts got solved here only . Just Thank you❤️ Lots of respect🌟 Can you please make a complete dsa playlist?? Plzzz🙏❤️
i feel like im in love with y Saldina, you make things in coding seem more intuitively. big thanks from VietNam, i will introduce this channel to all of my friend who are trying to learn c++ for sure. However, Could you make more video relate to doing some particular project. Wish you all the best with this channel as well as your personal life.
Because second is already a pointer and Next is pointer as well. &second would be the address of the pointer and in order to store that you'd need pointer to a pointer. You can watch this video and the idea of ** (pointer to a pointer) should be easier to understand. 🤗🤗 ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-mGl9LO-je3o.html