Review of C++ Development Interview at Zhongzhi

1. Basic Information Company: ZhongzhiField: Backend Development with 0-5 Years ExperiencePosition: C++ Development EngineerInterview Date: 2021-10-15Interview Format: PhoneInterview Duration: 90 minutesIs there a recording?: YesRecording Notes: Review is not anonymized, please maintain confidentiality Recording and Transcription File: https://articles.zsxq.com/id_5frz7dzp4n1j.html Interview Background: Conducted at Guomei in Beijing 2. Interview Review 2.1 Interview Questions 1Please introduce yourself. (Implicit … Read more

Usage of extern in C/C++ Language

Declaration of External Variables Modern compilers generally adopt a file-based compilation method, which means that global variables defined in different files are mutually transparent during compilation. In other words, the visibility of global variables is limited to the internal scope of the file during compilation. Here is a simple example. Create a project containing two … Read more

Summary of High-Quality C++ Programming Guidelines

The core goal of high-quality C++ programming is to write maintainable, scalable, efficient, and safe code. Below are practical high-quality programming guidelines covering key dimensions such as coding standards, design principles, performance optimization, and security practices: 1. Coding Standards and Style 1. Naming Conventions Variables/Functions: Use <span>snake_case</span> (e.g., <span>user_name</span>, <span>calculate_sum</span>), avoid abbreviations (unless they are … Read more

MiHoYo C++ Interview: The Difference Between Lvalue References and Rvalue References? The Significance of Rvalue References?

In C++, a “reference” is an indirect way to access a variable, and Lvalue Reference and Rvalue Reference are two core reference types introduced in C++11. Lvalue references, as traditional reference types, have long been widely used in scenarios such as function parameter passing and return value optimization; Rvalue references were created to address issues … Read more

Understanding C++ Classes and Objects Through ‘Playing Games’: An Introductory Lesson on Object-Oriented Programming

Many beginners in C++ often feel confused: “What exactly are classes and objects? How do they differ from the procedural approach of C language?” In fact, you don’t need to memorize concepts rigidly; you can easily understand the core logic of object-oriented programming through something we do every day – “playing games”. Today, I will … Read more

Review of C++ Development Interview at Zhongzhi

1. Basic Information Company: ZhongzhiField: Backend Development with 0-5 Years ExperiencePosition: C++ Development EngineerInterview Date: 2021-10-15Interview Format: PhoneInterview Duration: 90 minutesIs Recording Available: YesRecording Notes: Review is not anonymized, please maintain confidentiality Recording and Transcription File: https://articles.zsxq.com/id_5frz7dzp4n1j.html Interview Background: Conducted at Guomei in Beijing 2. Interview Review 2.1 Interview Questions 1Please introduce yourself. (Implicit in … Read more

Flecs: A Powerful C++ Library

Flecs: A High-Performance Entity Component System for C/C++ In the fields of game development and real-time simulation, handling a large number of entities and their behaviors has always been a core challenge. Traditional object-oriented approaches often struggle when faced with thousands of entities, which is where Flecs shines. What is Flecs? Flecs is an Entity … Read more

C++ Pointer Types: Concepts and Basic Applications

C++ Level 4 Questions Organized by Knowledge Points C++ Pointer Types: Concepts and Basic Applications Question 1 Question: Which of the following descriptions about arrays is ( ) incorrect. Options: A. The array name is a pointer constant B. Random access to array elements is convenient and fast C. Arrays can be incremented like pointers … Read more

Design Patterns in C++

In the field of software development, design patterns are general solutions to recurring problems. Mastering design patterns can not only improve code quality but also facilitate more efficient collaboration with other developers. 1. Singleton Pattern: Ensuring a Global Unique Instance Definition: The Singleton pattern ensures that a class has only one instance and provides a … Read more

Drogon: An Introduction and Practice of the High-Performance C++ Web Framework

Drogon: An Introduction and Practice of the High-Performance C++ Web Framework Drogon is a high-performance HTTP web application framework written in C++14/17/20, designed to help developers easily build various types of web application server programs. It adopts an asynchronous non-blocking architecture, utilizing efficient event handling mechanisms such as epoll (Linux) and kqueue (macOS/FreeBSD), maintaining excellent … Read more