In-Depth Understanding of C++ and C Language Similarities and Differences

In-Depth Understanding of C++ and C Language Similarities and Differences

Hello everyone, nice to see you again! Continuing from our last session, we have set up a warm and comfortable environment for C++ development. Today, I will guide you to understand the relationship between C and C++, reviving our long-dormant memories of C! Differences Between C++ and C First and foremost, the simplest difference is … Read more

Cultivating Embedded C/C++ Programming Skills

Cultivating Embedded C/C++ Programming Skills

Follow “Embedded Miscellany“, and choose “Star Official Account” to progress together! Source: CSDN What makes a good programmer? Is it knowing many technical details? Or understanding low-level programming? Or being fast at coding? I think none of these. For some technical details and low-level technologies, you can find them in help documents or by researching. … Read more

Why Embedded Engineers Should Learn C++

Why Embedded Engineers Should Learn C++

Embedded systems typically have characteristics such as resource constraints and low-level hardware operations, and the C++ language, as an efficient programming language, can be used to quickly develop efficient code in embedded systems. For example, C++ is widely used as a development language in Linux systems… C++ can fully utilize the concept of object-oriented programming, … Read more

Function Overloading in C++ for Embedded Development

Function Overloading in C++ for Embedded Development

It has been a whole week since I last shared knowledge about C++, and I miss you all dearly! Now, let me briefly introduce today’s main topic: function overloading. What is function overloading? Function overloading is somewhat different from the concept of overloading in real life. Those who have a background in C may know … Read more

Embedded C/C++ Specialized Test Questions

Embedded C/C++ Specialized Test Questions

1. In linux+gcc, which of the following statements about the code is incorrect?____. std::string& test_str() { std::string str=”test”; return str; } int main() { std::string& str_ref=test_str(); std::cout<<str_ref<<std::endl;< p=”” style=”margin-right: auto; margin-left: auto;”></str_ref<<std::endl;<> return 0; } A Compilation warning B Returns a reference to a local variable, runtime unknown error C Compiles and runs normally D … Read more

Master These Embedded C/C++ Development Tools To Boost Efficiency!

Master These Embedded C/C++ Development Tools To Boost Efficiency!

I am Lao Wen, an embedded engineer who loves learning. Follow me to become even better together! In daily development work, embedded low-level drivers and application development often use C and C++ programming languages. Today, we will discuss the top 10 IDEs most suitable for C/C++ developers, and you can see which one fits you … Read more

Detailed Explanation of CMakeLists.txt

Detailed Explanation of CMakeLists.txt

In the previous article, “Introduction to CMake Build Tool for ESP32,” we introduced the most basic usage of CMake with a “Hello World” program. Today, we will provide a detailed explanation of the CMakeLists.txt file. CMakeLists.txt The CMakeLists.txt file is the core configuration file for the CMake build tool. It contains a series of instructions … Read more

Mastering CMake Basics: Practical Compilation from Scratch

Mastering CMake Basics: Practical Compilation from Scratch

1. Introduction to CMake CMake is a cross-platform installation (compilation) tool that can describe the installation (compilation process) for all platforms using simple statements. It can output various makefiles or project files, and can test the C++ features supported by the compiler, similar to automake under UNIX. The configuration file for CMake is named CMakeLists.txt. … Read more

Getting Started with CMake: From Hello World to Complex Projects

Getting Started with CMake: From Hello World to Complex Projects

Hello, today we are going to delve into a topic that many people pay attention to but often do not take seriously—Getting Started with CMake: From Hello World to Complex Multi-Module Project Builds. Today, we will start from scratch and explore how to use CMake to build projects, making it a powerful assistant for managing … Read more

Learning CMake When Necessary

Learning CMake When Necessary

Recently, I was working on a project that required knowledge of CMake. Previously, I was involved in BSP driver development, where CMake was not used at all. The only intersection with CMake was during the porting of the gateway project, which involved only minor modifications. It wasn’t until I started developing a project with CMake … Read more