Linked Questions
18 questions linked to/from My first implementation of a linked list in C++
3
votes
5
answers
7k
views
LinkedList of int nodes in C++
I'm new to C++ programming. I'm experienced in Java and its OOP paradigm.
This code works well. I just need to make sure whether it's correct in terms of C++ programming standard.
main.cpp
...
3
votes
2
answers
11k
views
Creating linked list data with iterator pattern
I've created a linked list to use it in SquareList. I've started to create a linked list based on just that. I want my class to follow the iterator pattern. How can it be improve to use vector ...
6
votes
2
answers
1k
views
Singly Linkedlist implementation in C++
I'm implementing a linkedlist in C++ with the essential functionalities.
I would like to know what is good in this code and what is bad. In terms of everything (memory usage, functions ...
6
votes
3
answers
1k
views
Generic single linked list
I am a mathematician attempting to become proficient with C++. At the moment I am learning about data structures. I am tried writing a single linked list from scratch with some help from online ...
1
vote
1
answer
21k
views
Doubly circular link list implementation
I am supposed to be creating a doubly circular linked list, but I am now have problems creating the actual linked list. Is there a problem with the classes? Also, for the assignment, the list is ...
4
votes
3
answers
5k
views
Doubly Linked List Implementation [C++]
C++ noob reporting. I'm working on implementing a doubly linked list using two separate classes: one class, called node, containing your standard doubly linked list ...
0
votes
2
answers
6k
views
C++ remove from singly linked list
I asked a similar question (C++ linked list) but I'd like to have this similar code reviewed. It's not the same code, just slightly different and with bugs fixed.
The code takes the head pointer of a ...
4
votes
1
answer
5k
views
Doubly-linked list with iterators
Writing a double-linked list seemed like a good practice for understanding it. I tried to fix all the errors that were pointed out to me in the last question, as well as add new functionality. In ...
8
votes
2
answers
1k
views
Doubly-linked-list implementation in C++
I am fairly new to C++ and have been trying to make a doubly-linked-list class that imitates std::list (though not all of it). I'd appreciate if someone can look at my code and let me know if I have ...
2
votes
1
answer
6k
views
Circular Linked List implementation in C++
I want to improve this code.
...
4
votes
2
answers
2k
views
Doubly linked std::list simple implementation
I've implemented a simple doubly linked list structure. I would appreciate all criticism relevant to code, style, flow, and so forth.
How to implement end iterator and pop_back/pop_front properly? ...
3
votes
3
answers
569
views
Inserting into a Sorted Doubly Linked List
Edited: incorporated some feedback and added a lot of features
I've written a basic Doubly Linked List Class where every insertion into the class should be sorted into ascending order. The project ...
3
votes
2
answers
1k
views
LinkedList using Node Class in C++
I implemented Linked List data structure in C++ for practice purpose. The LinkedList.h uses Node.h as nodes. Creates and insert ...
1
vote
1
answer
1k
views
C++ linked list inheriting from node class
I am currently in between semesters at school and am using that time to improve on my knowledge of C++ classes by making a node class and a linked list class that inherits from the node class. There ...
3
votes
2
answers
1k
views
Singly linked list implementation in c++ (Data Structure)
I just finished writing an implementation of the "singly linked list data structure",and i wanna know if there are some bugs or memory leaks or any bad code to make the code better!
i'm so ...