Reading and writing a linked list to a file in C

  Рет қаралды 15,663

CodeVault

CodeVault

Күн бұрын

Пікірлер: 29
@alonsob4069
@alonsob4069 3 жыл бұрын
happy new year and welcome back!
@chickentowel-ek
@chickentowel-ek 3 жыл бұрын
Welcome back, your videos are the best!
@kader1791
@kader1791 3 жыл бұрын
i studied unix process from your videos and i took 18/20 at the exam the first in my class thanks sir very much ❤️
@kader1791
@kader1791 3 жыл бұрын
in one of the exercises he asked us to send a string through a pipe thankfully i saw your video 😂❤️
@girishmortha4823
@girishmortha4823 3 жыл бұрын
You videos are great ❤️... Thanks for coming back . Keep going.
@zekaka7
@zekaka7 3 жыл бұрын
Welcome back! Always great videos!
@kapellimestari0078
@kapellimestari0078 3 жыл бұрын
You're videos are excellent, please keep doing it
@-zero-
@-zero- 3 жыл бұрын
welcome back sir
@zltn_brkl
@zltn_brkl 3 жыл бұрын
It's good to see you sir
@dimitrioskalfakis
@dimitrioskalfakis Жыл бұрын
good demonstration.
@colt5870
@colt5870 2 жыл бұрын
You're genius,thanks for your lesson,very helpful.
@JokerTropical
@JokerTropical 3 жыл бұрын
Welcome back!!
@munawarcheema8991
@munawarcheema8991 Жыл бұрын
Excellent video
@warmcloud1023
@warmcloud1023 2 жыл бұрын
Thank you!! It is really helpful!
@mmkvhornet7522
@mmkvhornet7522 2 жыл бұрын
thank you very much sir your videos helped me a lot to understand and to work with linked lists , i tried to save a linked list inside a binary files but i struggled a lot doing it i had to transform the values to an array than saving the array and finally reading that array and rebuilding the list again if you explain it to us in a video that would be great !! 😁
@CodeVault
@CodeVault 2 жыл бұрын
Saving the pointers in a linked list is what's tricky. You could, but it's a lot of work. That's why the way you described it here is what everyone does when saving a linked list to a file
@mmkvhornet7522
@mmkvhornet7522 2 жыл бұрын
@@CodeVault thank you for your explanation 😁
@munawarcheema8991
@munawarcheema8991 Жыл бұрын
Have you ever thought of doing a more complex series building a more complicated piece of software. Such as a parser for C declarations such as cdecl or anything else of that complexity.
@CodeVault
@CodeVault Жыл бұрын
Yes! The first course I tried to create was making a game engine in C (using just OpenGL, SDL and some other small libraries). It turned out to be too much to explain (especially given I didn't have the skills necessary to teach back then). I was thinking about making some livestreams about my day-to-day work. I doubt people would like to see web development with Typescript/HTML/SCSS on this channel, but I might make a small REST web server in Rust. Is it something you would be interested in seeing?
@munawarcheema8991
@munawarcheema8991 Жыл бұрын
@@CodeVault definitely would interest me.
@JediRogue13
@JediRogue13 3 жыл бұрын
Thank you for all your videos. Can you do a video on serializing and deserializing a simpler struct with no pointers. For example say we wanted to serialize a struct into bytes and send it over a network.
@CodeVault
@CodeVault 3 жыл бұрын
There's this video that looks into converting a struct to string and then writing it into a file: code-vault.net/lesson/1ilh1d0goy:1603733527863 There's also another couple videos regarding reading/writing to binary files: code-vault.net/course/3os73qqz0h:1610029045277/lesson/dc7v6ej05a:1603733523111 For now, this is all there is. I will look in the future about network communication and sending structs over a network would surely be a topic I'll touch on. Thanks for the recommendation!
@JediRogue13
@JediRogue13 3 жыл бұрын
@@CodeVault Really cool videos thank you!
@vilijanac
@vilijanac 3 жыл бұрын
Shouldn't is before exit(1) -> deallocate(&root);
@CodeVault
@CodeVault 3 жыл бұрын
Yeah, I just wanted to keep it simple. Although nowadays the dynamically allocated memory gets deallocated automatically by the operating system so you don't have to worry much about that when terminating the program
@vilijanac
@vilijanac 3 жыл бұрын
@@CodeVault Sorry I was cryptic in posy. I use only Perl language, it is tight with C.
@CodeVault
@CodeVault 3 жыл бұрын
Ahh I see. I'm sorry, I'm not familiar and I never worked with Perl
@vilijanac
@vilijanac 3 жыл бұрын
@@CodeVault Yes, well Perl came from C/CPP programmers as a shell script solution. So you can prototype, without worrying about data types, conversion and has automatic garbage collection.
@CodeVault
@CodeVault 3 жыл бұрын
Interesting, thanks. I might try it out at some point in the future
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 339 М.
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 575 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
Read an array of structs in C
12:37
CodeVault
Рет қаралды 32 М.
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 137 М.
Reading and Writing from Binary Files in C!
20:26
Astrocode
Рет қаралды 14 М.
Naming Things in Code
7:25
CodeAesthetic
Рет қаралды 2,3 МЛН
HashMaps & Dictionaries, Explained Simply
22:44
Nic Barker
Рет қаралды 9 М.
Understanding and implementing a Linked List in C and Java
18:15
Jacob Sorber
Рет қаралды 251 М.
Rust vs C++
7:18
conaticus
Рет қаралды 103 М.
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
Iterating over a linked list in C
11:45
CodeVault
Рет қаралды 39 М.