C++ Bitwise Operations (Ninety-Three) [Part 1]

Long time no see! Due to personal and academic issues, I stopped updating for six months. Today, I will continue to publish articles, and I hope everyone enjoys them.Today, we will learn about: bitwise operations1. Brief Overview of Bitwise OperatorsBitwise operations are a type of operator. When we use a computer, it cannot understand our … Read more

Embarking on a Wonderful Journey with C++: From “Hello World” to Programming Proficiency

Before We Start: Why Engage with Code? Why Learn Programming? (Not Just to Look Cool) In this digital age, programming is like a “magic wand” of the new era! It not only powers those cool tech gadgets but also quietly infiltrates the corners of our lives. Think about it, mobile apps, websites, games, and even … Read more

Daily Programming Challenge – Day 727

Today is the 727th day of learning programming with a slightly cold rain! Hello, everyone! This is the GESP Level 4 Examination question. Day 727 GESP Level 4 Examination in March 2025 True/False Question Question 6: Recursion is an algorithm that gradually solves the target value through known initial values and recursive formulas. Answer: True … Read more

Daily C++ Challenge – Day 726

Today is the 726th day of learning programming with a slightly cold rain! Hello, everyone! This is the GESP Level 4 Examination question. Day 726 GESP Level 4 Examination in March 2025 True or False Question 5: When passing a two-dimensional array as a function parameter, all dimensions must be explicitly specified. Answer: False START … Read more

MiniTest: A Lightweight C++ Unit Testing Framework

Click the blue text to follow immediately Introduction MiniTest is a lightweight C++ unit testing framework that provides assertion testing, parameterized testing, grouped testing, performance testing, and Mock (mock objects), suitable for the unit testing needs of small projects. Features of this framework: Lightweight: No third-party dependencies, suitable for embedded systems, CLI tools, etc. Easy … Read more

In-Depth Analysis of C++ Exception Handling Mechanism: Best Practices, Performance Analysis, and Challenges

1. Exception Handling Practices When writing C++ code, unexpected errors and exceptions may occur. To make our code more robust and reliable, we need to use the exception handling mechanism to handle these situations. 1. Writing Exception Handling in High-Quality Code When writing high-quality code, we should follow some guidelines to design and write exception … Read more

The 8-Year-Old Boy Who Lost Three Times in C++ Competitions Finally Turned the Tide

(Zero) On the afternoon of March 9, 2025, it was the day of the STEMA exam. This exam is separate from the Lanqiao Cup. That day, because Zhuangzhuang’s parents were quite busy, his mother set up the tablet for him to monitor and then went to work. Later, when the exam was over, his mother … Read more

C++ One Cycle Problem: Rest Time (GESP Level 1 Real Exam Question)

June 2024:Rest Time 01 Source of the question Luogu NetworkB4000 , Xin’ao Open Class Problem Solving Approach 02 1. Time Conversion: Convert the start time’s hours, minutes, and seconds into total seconds. Then add the study seconds <span><span>k</span></span>, resulting in the total seconds for the rest time. 2. Time Restoration: Convert the total seconds back … Read more

C++ Basics (GESP Level 1)

In this article, I will guide you through the content of GESP Level 1, helping you to successfully pass the exam.” 01 — Level 1 Knowledge Points “The above image is from the GESP official website gesp.ccf.org.cn” Looking ahead, you will see the first two knowledge points, which are secondary focuses. A dedicated article will … Read more

Detailed Explanation and Practice Questions for C++ GESP Level 5: Master These and You’re Set

1. Detailed Explanation of Core Topics for C++ GESP Level 5 According to the official GESP syllabus and analysis of past exam questions, the Level 5 exam mainly covers the following knowledge points: 1. Elementary Number Theory Core Content: Prime number determination (Sieve of Eratosthenes, linear sieve), greatest common divisor (Euclidean algorithm), congruences and modular … Read more