Differences Between C and C++ Programming Languages

Differences Between C and C++ Programming Languages

PrefacePREFACE C++ is a programming language that introduces object-oriented mechanisms based on C. C++ inherits most features of C. On one hand, C++ treats C as its subset, allowing compatibility with C; on the other hand, C++ supports object-oriented programming, such as the concept and properties of classes. This is a significant improvement over C. … Read more

NVIDIA Jetson TX2 Beginner’s Guide: An Unfettered Adventure

NVIDIA Jetson TX2 Beginner's Guide: An Unfettered Adventure

Thank you for bringing us various surprises [Preface] In 2017, NVIDIA officially started to sell the new generation of embedded high-performance computing platform, the Jetson TX2. Compared to the previous generation Jetson TX1, it has more than double the energy efficiency and twice the operational performance, allowing it to run more complex neural networks on … Read more

A Small Tip on CMake and QT Development Environment

A Small Tip on CMake and QT Development Environment

OpenCV Version: 4.2.0 OpenCV-Contrib Version: 4.2.0 CMake Version: 3.20.0 When developing image algorithms with OpenCV, being able to display the pixel where the mouse falls on the image can greatly improve development efficiency. I searched this issue and found that most bloggers use callback functions to solve it, which not only adds extra complexity but … Read more

Basic Framework of Linux Kernel Modules

The writing of Linux kernel modules intimidates many people, but it is actually not that difficult or complicated. Here’s a basic framework to help those with a little knowledge get started quickly. 1. Basic Framework (Before Kernel 2.3.13) #include<linux/kernel.h> #include<linux/module.h> int init_module(void){ pr_info("hello module.\n"); return 0; } void cleanup_module(void){ pr_info("hello end.\n"); } MODULE_LICENSE("GPL"); #include<linux/module.h> int … Read more

Debugging Information with DEBUG Print in IAR

Debugging Information with DEBUG Print in IAR

#include “stdafx.h” #include<stdio.h> #include<stdlib.h> #include<string.h> // Whether to enable DEBUG mode //#define _DEBUG_ 0 // Not enabled #define _DEBUG_ 1 // Enabled #if _DEBUG_ #define PRINTF(…) printf(__VA_ARGS__) #else #define PRINTF(…) #endif int main() { int a, b, c; b = 1; c = 2; a = b + c; PRINTF(“a = %d\n”, a); getchar(); return … Read more

Switching from C++ to Rust: A Significant Improvement in Work Experience!

Switching from C++ to Rust: A Significant Improvement in Work Experience!

Follow us丨Book giveaway at the end of the article I have been working professionally in C++ programming for over four years, but three months ago I found a new job that requires using Rust. I want to share my personal experiences and thoughts on switching between the two languages in this article. Disclaimer: This article … Read more

A Senior Developer’s Year-Long Journey Learning Rust

A Senior Developer's Year-Long Journey Learning Rust

Pine from Aofeisi Quantum Bit | WeChat Official Account QbitAI How to learn Rust? An article on Hacker News has gone viral. Unlike similar crash courses available online, this one points out a path to learning Rust through personal experiences. After the tutorial was published, users on Hacker News also shared their learning experiences. Finding … Read more

Python Notes: Chapter One

Python Notes: Chapter One

Introduction to Python 1. The Origin and Versions of Python 1.1 Origin of Python The founder of Python is Guido van Rossum. During Christmas in 1989, Guido van Rossum (Chinese name: Turtle Uncle) decided to develop a new scripting interpreter to pass the time in Amsterdam, as a successor to the ABC language. 1.2 Python … Read more

Python Basics Syntax Tutorial

Python Basics Syntax Tutorial

Follow 👆 the official account and reply with 'python' to receive a beginner's tutorial! Source from the internet, please delete if infringing. 1. Identifiers An identifier is a name given to variables, constants, functions, classes, and other objects. First, it must be stated that Python strictly distinguishes between uppercase and lowercase letters in any context! … Read more

18 Efficient Python Programming Tips

18 Efficient Python Programming Tips

Click the "Little White Learns Vision" above, select "Star" or "Top" Heavy content, delivered first time Initially getting to know Python, I felt that Python met all my requirements for a programming language during school. The efficient programming techniques of Python make us, who suffered through four years of C or C++, extremely excited, finally … Read more