C++ Small String, Big Trouble

C++ Small String, Big Trouble

1 Introduction Many years ago, we had a library that caused garbled text when users input Chinese characters. As a result, we modified it internally to use UTF-8 encoding throughout. The interface still used the std::string type as a carrier for UTF-8 strings because std::u8string did not exist at that time. For many years, everything … Read more

C++ Makes Too Many Poor Design Decisions

C++ Makes Too Many Poor Design Decisions

Author | Jimmy Hartzell Planning | Yun Zhao The author of this article, Jimmy Hartzell, is an expert who teaches advanced C++ courses within his company. However, after returning to “modern” C++, he is very disappointed with the improvements made to this language. In this article, the author will focus on various “warts” of C++, … Read more

The Real C++ Killers Are Not Rust

The Real C++ Killers Are Not Rust

【Editor’s Note】”Is C++ 80% Dead?” The author of this article has been using C++ for 18 years. After experiencing dozens of programming languages, he points out that although C++ has been one of the most commonly used programming languages for decades, it has some issues such as being unsafe, inefficient, and wasting programmers’ energy. Therefore, … Read more

C++ Learning Path

C++ Learning Path

Hello everyone, I am Village Chief Axiang.This is the 42nd original article from the Village Chief.According to our previous agreement, I will gradually bring youarticles combining software and hardware.The so-called software refers to more directional suggestions and planning; the so-called hardware refers to technical content. This is also an article that digs a pit, meaning … Read more

Why Is C++ So Powerful?

Why Is C++ So Powerful?

Author: Milo Yip Link: https://www.cnblogs.com/miloyip/archive/2010/09/17/behind_cplusplus.html Thirty-one years ago (1979), a newly graduated researcher invented a new programming language to develop a software project. This researcher, named Bjarne Stroustrup, named the language C with classes, which was later renamed C++ four years later. C++ is a general-purpose programming language that supports multiple programming paradigms, including procedural, … Read more

In-Depth Guide to C++ Classes and Objects

In-Depth Guide to C++ Classes and Objects

This article mainly introduces an in-depth understanding of C++ classes and objects, specifically focusing on references, inline functions, the auto keyword, and for loops. The examples provided are very detailed and have significant reference value for your learning or work. Friends in need can refer to this! Friends, today we are diving into the wonderful … Read more

Configuring MinGW in VSCode for C Language

Configuring MinGW in VSCode for C Language

C Language Editor VSCode VSCode is a personal favorite editor software. I have run three terminals simultaneously in VSCode, developing in Python, Golang, and C language. The download link is as follows: code.visualstudio.com Configuring MinGW in VSCode To configure MinGW in VSCode, follow these steps: Install the C/C++ extension from the extensions in VSCode; Create … Read more

C Language Knowledge: Solving C++ Exception Handling Mechanism

C Language Knowledge: Solving C++ Exception Handling Mechanism

Hello everyone, I’m Liao Wang. Imagine that the world of programming is like a vast, boundless, and mysterious continent full of infinite possibilities, and C language is like a universal key that can help you unlock magical doors on this continent! When you decide to embark on your journey of C language programming and write … Read more

Understanding For Loops and Range-Based For Statements in C++

Understanding For Loops and Range-Based For Statements in C++

This article mainly introduces an in-depth understanding of for loops and range-based for statements in C++. The examples provided are very detailed, offering significant reference value for your study or work. Friends in need can refer to it! Today, let’s discuss the <span>for</span> loop and the range-based <span>for</span> statement in C++. They are like two … Read more

Introduction to C Language: Conversion Specifiers and Modifiers

Introduction to C Language: Conversion Specifiers and Modifiers

About Conversion Specifiers and Modifiers In C/C++ (and many languages that support C-style formatted strings, such as Java and Python in certain contexts), it is often necessary to use formatted output or input functions (like printf, scanf, etc.) to handle different types of data. The “format string” for these functions typically consists of two parts: … Read more