Uploaded June 2018 | Updated November 2026, 8 hours ago
Last time, we looked at how we could build a node class in Java and use it as a building block for more complex data structures like Linked Lists and Trees. Today, we do the same, but using C with structs, and C++ with classes!
We'll be able to see how C/C++ does things a little differently - Since these languages allow you to manipulate memory directly, it becomes far easier to see how pointers are being manipulated.
= CODE DOWNLOAD =
To view and download the code written in this video, check out the following Bitbucket repository: bitbucket.org/nerdfirst/node-based-data-structures-c-c
To download, first click on "Downloads" in the left sidebar. Then, in the subsequent page, click "Download Repository".
= Timestamps =
0:51 Agenda
1:10 Pre-Requisites
2:05 Node Structure in C
3:25 Problems with basic solution
3:57 Node Based Linked List in C
12:25 Problems with Struct Solution
13:14 Porting Struct Solution to C++
16:01 Class based solution in C++
22:14 Problems with simple Class-Based solution
22:55 Generic Class using C++ Templates
26:02 Conclusion plus exploring other types of node based data structures
= 0612 TV =
0612 TV, a sub-project of NERDfirst.net, is an educational YouTube channel. Started in 2008, we have now covered a wide range of topics, from areas such as Programming, Algorithms and Computing Theories, Computer Graphics, Photography, and Specialized Guides for using software such as FFMPEG, Deshaker, GIMP and more!
Enjoy your stay, and don't hesitate to drop me a comment or a personal message to my inbox =) If you like my work, don't forget to subscribe!
Like what you see? Buy me a coffee → nerdfirst.net/donate
0612 TV Official Writeup: nerdfirst.net/0612tv
More about me: about.me/lcc0612
Official Twitter: twitter.com/0612tv
= NERDfirst =
NERDfirst is a project allowing me to go above and beyond YouTube videos into areas like app and game development. It will also contain the official 0612 TV blog and other resources.
Watch this space, and keep your eyes peeled on this channel for more updates! nerdfirst.net
-----
Disclaimer: Please note that any information is provided on this channel in good faith, but I cannot guarantee 100% accuracy / correctness on all content. Contributors to this channel are not to be held responsible for any possible outcomes from your use of the information.
Last time, we looked at how we could build a node class in Java and use it as a building block for more complex data structures like Linked Lists and Trees. Today, we do the same, but using C with structs, and C++ with classes!
We'll be able to see how C/C++ does things a little differently - Since these languages allow you to manipulate memory directly, it becomes far easier to see how pointers are being manipulated.
= CODE DOWNLOAD =
To view and download the code written in this video, check out the following Bitbucket repository: bitbucket.org/nerdfirst/node-based-data-structures-c-c
To download, first click on "Downloads" in the left sidebar. Then, in the subsequent page, click "Download Repository".
= Timestamps =
0:51 Agenda
1:10 Pre-Requisites
2:05 Node Structure in C
3:25 Problems with basic solution
3:57 Node Based Linked List in C
12:25 Problems with Struct Solution
13:14 Porting Struct Solution to C++
16:01 Class based solution in C++
22:14 Problems with simple Class-Based solution
22:55 Generic Class using C++ Templates
26:02 Conclusion plus exploring other types of node based data structures
= 0612 TV =
0612 TV, a sub-project of NERDfirst.net, is an educational YouTube channel. Started in 2008, we have now covered a wide range of topics, from areas such as Programming, Algorithms and Computing Theories, Computer Graphics, Photography, and Specialized Guides for using software such as FFMPEG, Deshaker, GIMP and more!
Enjoy your stay, and don't hesitate to drop me a comment or a personal message to my inbox =) If you like my work, don't forget to subscribe!
Like what you see? Buy me a coffee → nerdfirst.net/donate
0612 TV Official Writeup: nerdfirst.net/0612tv
More about me: about.me/lcc0612
Official Twitter: twitter.com/0612tv
= NERDfirst =
NERDfirst is a project allowing me to go above and beyond YouTube videos into areas like app and game development. It will also contain the official 0612 TV blog and other resources.
Watch this space, and keep your eyes peeled on this channel for more updates! nerdfirst.net
-----
Disclaimer: Please note that any information is provided on this channel in good faith, but I cannot guarantee 100% accuracy / correctness on all content. Contributors to this channel are not to be held responsible for any possible outcomes from your use of the information.










