This C++ Syntax Has Been Deprecated by the Standard

This C++ Syntax Has Been Deprecated by the Standard

Last year, I specifically introduced the extremely rare C++ syntax <span>……</span> in the article “What does the …… mean in C++?” which is actually an abbreviated syntax for <span>…, …</span>. The following three forms are completely equivalent: template<class… Args> void f(Args……) {} template<class… Args> void f(Args… …) {} template<class… Args> void f(Args…, …) {} The … Read more

jsonifier: A C++ Library for JSON Handling

jsonifier: A C++ Library for JSON Handling

JSON is a lightweight data interchange format, while C++ is a powerful programming language. However, the combination of C++ and JSON is not so natural. Fortunately, the jsonifier library has emerged, acting as a bridge that allows C++ and JSON to communicate easily. jsonifier enables C++ programs to conveniently handle JSON data, whether it is … Read more

C++ Elementary Exam Points (Official)

C++ Elementary Exam Points (Official)

1. Program Basics Sequential Structure: Understanding program flow, basic input and output. Branching Structure: if statements, simple logical operations. Loop Structure: Using for loops and while loops to solve repetitive tasks. Arrays: Using arrays to store and access collections of data. Strings: Basics of string manipulation, such as concatenation and character search. Practical Links: A … Read more

C++: The Ultimate Guide!

C++: The Ultimate Guide!

Source: Authorized Reprinted from Programming Guide (ID: cs_dev) Author: Programming Guide Today, I saw a video online where the presenter mentioned that the current trend in learning paths is a complete set of arrangements. For example, in the Java learning path, most bloggers assume you will focus on Java backend development and attach a bunch … Read more

C++ Interview Questions – May Edition

C++ Interview Questions - May Edition

16. What is the difference between arrays and pointers? Definition and Essence: An array is a collection of elements of the same type, stored contiguously in memory; a pointer is a variable that stores the address of another variable. Memory Allocation: The memory allocation for an array is determined at compile time, with a fixed … Read more

C++ Interview Questions – May Edition

C++ Interview Questions - May Edition

1. Static Functions, Const Functions, and Virtual Functions Static Functions Static functions cannot be defined as virtual functions. They belong to the class itself, not to instances of the class, and do not have a <span>this</span> pointer. Virtual function calls depend on the object’s virtual function table, requiring the <span>this</span> pointer for location, while static … Read more

The Confidence Curve of C++ Programmers

The Confidence Curve of C++ Programmers

Having studied C++ for a long time and observed many programmers’ journeys in learning C++, it can be said that C++ is a “double-edged sword” language; only those who are familiar with it can use C++ effectively. Linus once said, “C++ is a terrifying language, and even more terrifying are the many unqualified programmers using … Read more

Carbon: The Successor to C++ Gains Popularity on GitHub, C++ Creator Comments on Its Standards

Carbon: The Successor to C++ Gains Popularity on GitHub, C++ Creator Comments on Its Standards

Source | This article is authorized for reprint by AI new media Quantum Bit (ID: QbitAI). Please contact the source for reprinting. Author | Alex from Aofeisi At this year’s CPP North C++ conference, Google announced a new programming language Carbon, claiming it to be the “successor to C++”. Google has open-sourced it on GitHub. … Read more

Representation of Basic Data Types in C++

Representation of Basic Data Types in C++

This article is a highlight from the Kanxue Forum. Author ID on Kanxue Forum: techliu The representation of basic data types in C++ is summarized in this section based on the book “C++ Disassembly and Reverse Engineering Techniques Revealed”, which also includes content from Chapter 2 on floating-point numbers from “Computer Systems: A Programmer’s Perspective”. … Read more

Using Common Configuration Files in VS Projects with C++

Using Common Configuration Files in VS Projects with C++

When working on a solution in Visual Studio (VS) that contains multiple projects, it is common to encounter situations where multiple projects need to include the same configurations, such as C++ version, additional library directories, additional include directories, etc. This article provides methods to include common configuration files to avoid repetitive configurations. 1. Configure Third-Party … Read more