今日已更新 302 条资讯 | 累计 37551 条内容
关于我们

Journey towards Mastering (Computers)

Gazel-create 2026年08月30日 20:31 0 次阅读 来源:Dev.to

Being persistent is hard when you have responsibilities, when you need to work to earn money, when you don't have time to do what you want. This is what I was telling myself every day, when I missed a daily coding challenge, when I couldn't finish a project on time, when I lay in bed tired. Motivation is not necessary. Just do it. Love your fate. This post is my special way of showing myself how much I want this. I have been learning computer science and doing things that I keep forgetting due to a lack of reinforcement. Hence, I have made a 3-month plan to learn and relearn all the basics to make myself a better programmer. This is my progress for Day 1. Also, I will not post Day 1, 2, 3, etc. for 90 days straight. I will only post when I have time, or when I have learned something significant that makes me smile or let out a small giggle that makes me look like a psycho hehe. Day 1 : Single Linked List I started the task having an idea of what a linked list was, but I had no idea about the different varieties of linked lists: Singly Linked List Doubly Linked List Circular Linked List Double Circular Linked List I started Day 1 by writing a few lines of code to make a singly linked list. I will just paste the program code right now, and then I will write about what was interesting to me. #include <stdio.h> #include <stdlib.h> struct node { int x ; struct node * ptr ; }; int main (){ int value [] = { 10 , 20 , 30 }; struct node * head = NULL ; for ( int x = 0 ; x < 3 ; x ++ ){ struct node * new_node = malloc ( sizeof ( struct node )); new_node -> x = value [ x ]; new_node -> ptr = head ; head = new_node ; } struct node * current = head ; while ( current != NULL ){ struct node * next_node = current -> ptr ; free ( current ); current = next_node ; } head = NULL ; return 0 ; } First thing was, I have used C++ before. Then, while trying to understand objects, I read a line from Gemini that said objects are just a cooler version of structs. Well, custom data structures a

本文内容来源于互联网,版权归原作者所有
查看原文