Learning C++ Programming (Part 1)

As a professional in the surveying industry, merely using surveying instruments for measurement and software for drawing is far from sufficient. For instance, to process a batch of surveying data, one needs to understand programming to utilize computers for batch processing.Additionally, developing an internal data processing software also requires programming skills. Furthermore, modern three-dimensional urban … Read more

Hello C++: Object-Oriented Programming

Although the principles of structured programming improve the clarity, reliability, and maintainability of programs, they still face challenges when writing large programs. To address these challenges, Object-Oriented Programming (OOP) offers a new approach. Unlike procedural programming, which emphasizes algorithms, OOP emphasizes data. OOP does not attempt to make problems fit the procedural approach of the … Read more

AI Apprentice Diary | GPT Teaches Me C++ (02): Linked List – A Mental Leap from Structs to STL

As a computer science student, I once learned about data structures, C language, linked lists, stacks, queues… But to be honest, over time, I almost forgot everything. This semester, I started learning C++, and I decided not to “grind through the textbooks” anymore, but to let GPT be my “companion AI tutor” to gradually rebuild … Read more

Chapter 4 of C++ Programming: Classes

Chapter 4 Classes unset4-1 Explain the role of public and private. What are the differences between public and private members?unsetunset Answer: Public members are declared with the <span>public</span> keyword, defining the external interface of the class, allowing external objects to access them directly; private members are declared with the <span>private</span> keyword, allowing access only by … Read more

Introduction to Object-Oriented Programming in Python (Classes/Objects)

Python is an object-oriented programming language. Almost everything in Python is an object, which has attributes and methods. Object-oriented programming is a very popular programming paradigm, which is a methodology of program design. In simple terms, it refers to the programmer’s understanding and perception of the program and the way they write code. It is … Read more

Core Concepts of Object-Oriented C++: Classes, Inheritance, and Composition Explained!

In C++ Object-Oriented Programming (OOP), classes, inheritance, and composition are the three pillars for building complex programs. They not only help us achieve code reuse but also make the program structure clear and easy to maintain. Today, we will thoroughly understand these three core concepts from theory to practice. 1. Classes: The “Basic Unit” of … Read more

Empowering Embedded Development with C++

In the field of embedded development, the C language holds a dominant position. However, C++ has become an indispensable choice in embedded development due to its powerful object-oriented features, efficient low-level control capabilities, and rich standard library support. Core Advantages of C++ The Power of Object-Oriented Programming The object-oriented features of C++ have brought revolutionary … Read more

Is C Language an Object-Oriented Programming Language?

Is C Language an Object-Oriented Programming Language? Abstract Object-Oriented Programming (OOP) is a programming paradigm centered around “objects,” characterized by encapsulation, inheritance, and polymorphism. This article argues that C language is essentially a procedural programming language by comparing the core features of OOP with the language design of C, supported by authoritative literature and language … Read more

Friend Functions and Object-Oriented Design: Examining C++ Design Philosophy from the Essence of Encapsulation

Abstract One of the core principles of Object-Oriented Programming (OOP) is encapsulation, which binds data and methods that operate on the data into classes, hiding internal implementation details and interacting with the outside only through public interfaces. The friend function in C++ is often criticized for being able to directly access a class’s private and … 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