C++ Lesson 3: Printing and Definitions

Author’s Whisper Finally able to post on the public account, let me write an article. # Printing## IntroductionPrinting… I think I mentioned it before, but I haven’t taught it yet.## What is PrintingOutputting messages Note Right, just how to be perfunctory… ## Syntax of Printing Note This is much easier to teach than the previous … Read more

C++ Weekly 2025-11-15 Issue #189

Click “View Original” to jump to the corresponding file on GitHub, the link is clickable. QQ group 753792291 for Q&A here. RSS Welcome to submit articles/software/resources, etc., leave a message in the comments. This issue has no sponsorship. It has been a long time since the last update; I have been too lazy, spending my … Read more

Zero-Copy Techniques in C++

In the field of high-performance programming, data copying is one of the key bottlenecks affecting system throughput. In traditional IO operations, data often needs to be transferred multiple times between user space and kernel space, accompanied by redundant copying overhead.The core goal of zero-copy technology is toreduce or eliminate unnecessary data copying, significantly improving the … Read more

Practical Showdown: Performance Testing of Rust vs C++ High-Frequency Trading Engines Reveals Surprising Results

Introduction In the field of high-frequency trading, every microsecond is worth a fortune. When your trading engine starts to exhibit delays, and orders cannot be completed within milliseconds, market price spreads move quickly, and market makers withdraw quotes, this is not just a technical issue but a direct economic loss. Recently, a trading team encountered … Read more

Performance Boost of 308 Times! The Ultimate Optimization Secrets of Python and C++ Integration Programming: Calculating Financial Bollinger Bands

In the field of high-frequency trading and quantitative analysis, Bollinger Bands serve as a core indicator, and the efficiency of their calculation directly determines the success or failure of strategies. However, a pure Python implementation takes over 10 seconds to process millions of data points, while a C++ optimized solution requires only 0.04 seconds—what technical … Read more

C++ System Learning Without Textbooks: 04 Loop Statements (Part 1)

<Loop Statements (Part 1)>From beginner to expert, from Hello World to ACMAll content, no textbooks required! Course Objectives: Understand the concept of loops and their importance in program design. Master the syntax and execution flow of <span>for</span> loops and <span>while</span> loops. Be able to use loop control statements <span>break</span> and <span>continue</span> to flexibly control loops. … Read more

What Functions to Use for Directory Access in C/C++

Accessing directory files is a common task for programmers. In C and C++, we use the functions opendir() and readdir() to access directories. opendir and readdir are functions used for directory operations, commonly used to traverse the file system. Below are the core functionalities and usage methods: opendir Function Function: Opens the specified directory and … Read more

Crunch: An Open Source Library Based on C++

In modern graphics application development, texture resources often consume a significant amount of memory and bandwidth. To optimize performance, reduce loading times, and save storage space, developers typically use GPU-supported compressed formats (such as DXT1/DXT5) to store textures. However, standard DXT compression, while directly decompressible by the GPU, has limited compression ratios, making it unsuitable … Read more

Integrating Python and C++: The Secret to a 10x Performance Boost in High-Frequency String Processing

When a text data cleaning task of 100,000 entries takes 1.2 seconds with a Python script, while a C++ integrated solution only takes 0.15 seconds—what performance optimization magic lies behind this? In today’s era of big data, text data processing has become a core requirement in fields such as NLP, log analysis, and user behavior … Read more

Understanding Hash Tables in C++

1. Core Essence of Hash TablesHash Table is an efficient data structure based on “key-value mapping”, where the core idea is to “convert the key into an array index using a hash function”, allowing direct access to data via the index, achieving an average lookup/insertion/deletion efficiency of O(1). Core Logic: key → Hash Function → … Read more