Introduction to C Language: Nested Loops

This is the 36th article in the C language learning series. The body of a loop can contain any statement, including another loop statement. A nested loop is when one loop is placed inside another loop. Just like in our daily lives, there are 7 days in a week (outer loop), and each day has … Read more

Understanding Linked Lists in C Language

1. Significance and Function of Linked Lists Significance: Linked lists provide the capability for dynamic memory management, allowing the creation and release of data elements as needed during program execution, thus overcoming the limitations of arrays that require a predetermined size. Main Functions: Dynamic Memory Allocation: No need to know the size of the data … Read more

C++ System Learning Without Textbooks: 03 Conditional Branch Statements

<Conditional Branch Statements>From beginner to expert, from Hello World to ACMAll practical content, no textbooks required! Course Objective: To enable programs to have “intelligence” and execute different code blocks based on different conditions. This is a key step from simple calculations to logical decision-making. 1. Why are Conditional Branches Needed? Imagine a scenario: Writing a … Read more

Efficient C Programming Techniques

Efficient programming techniques in C include: Bit Manipulation: Prefer using bit manipulation instead of multiplication and division. Global Variables: Accessing global variables is usually faster than accessing local variables. Pointers: Accessing array elements using pointers is generally faster than using array indices. Algorithm Optimization: Arrange branches and loops logically to reduce unnecessary calculations. Macros: Use … Read more

Daily C++ Olympiad Problem

Determine whether a number is a Narcissistic number (a Narcissistic number is a three-digit number whose digits’ cubes sum up to the number itself). Input format: A single line containing an integer Output format: If it is a Narcissistic number, output “Yes“, otherwise output “No“ Input example #1:153 Output example #1:Yes A video explanation of … Read more

C/C++ Programming Development Learning Roadmap: A Complete Guide from Zero Basics to Engineering Practice

This learning roadmap integrates 23 high-quality courses, covering a comprehensive skill system including C/C++ fundamentals, modern C++ features, system programming, embedded development, and industrial applications, suitable for learners from zero basics to advanced levels. Source: https://yunpan.plus/t/465-1-1 📚 Overview of the Learning Roadmap Phase 1: Introduction to Programming Basics (1-2 months) ↓ Phase 2: Core C++ … Read more

Some Tips for C/C++ Programming

(Some of these entries only consider usability and do not take optimization into account; use with caution in production environments.)1. C++ Universal Header (*Only usable with the GCC compiler)#include<bits>**Recommended only for competitive programming; otherwise, it may lead to unpredictable issues.2. Improve yourself by practicing on Luogu’s theme library; for exams, use Luogu’s beginner and interview … Read more

Scratch vs C++: The ‘Children’s Building Blocks’ and ‘Precision Gears’ in the World of Algorithms

When it comes to programming, many people fall into the “either-or” fallacy: thinking that Scratch is for “children” while C++ is for “serious programming.” However, few notice that these two seemingly disparate tools actually share the same “soul”—algorithmic logic.Today, we will break down a key question: Are Scratch and C++ “of the same origin” or … Read more

Transitioning from C to C++: Basic Concepts

Written on 2025.8.25 Personal Obsidian library, archived to public account. – Universal Header File Standard: #include<iostream> > #include<bits/stdc++.h> >using namespace std; – Input and Output Input cin >> Output cout << – String string (6, ‘A’); #Repeat ‘A’ six times > Access: > for (int i = 0; i < s.size(); i++) > cout << … Read more

C++ Practice [GESP2506 Level 1] Duty

GESP Level 1 Practice, Conditions and Logic, Beginner Difficulty. CCF-GESP C++ Assessment Standards Hong Yang, WeChat Official Account: Hong Yang’s Programming Class CCF-GESP C++ Assessment Standards Comprehensive Guide – [GESP2506 Level 1] Duty Problem Requirements Problem Description Little Yang and Little Hong are on duty, responsible for cleaning the classroom. Little Yang is on duty … Read more