C++ Programming for Kids (18) Bitwise Operations

C++ Programming for Kids (18) Bitwise Operations

One Overview of Bitwise Operations Bitwise operations are operations that directly manipulate the binary bits in memory, and are commonly used in low-level programming and high-performance computing. C++ provides six bitwise operators: <span><span>&</span></span> : Bitwise AND (AND operation) <span><span>|</span></span> : Bitwise OR (OR operation) <span><span>^</span></span> : Bitwise XOR (XOR operation) <span><span>~</span></span> : Bitwise NOT (NOT … Read more

Using C Language Bitwise Operations and Macros to Create a Configurable HV5812 + IV-18 Fluorescent Tube Driver

Using C Language Bitwise Operations and Macros to Create a Configurable HV5812 + IV-18 Fluorescent Tube Driver

For a while, I found the glow tube quite interesting, and I happened to see a small LCD screen of similar size. So, I created an LCD simulation of a glow tube clock using the LCD to display images (see “AI did half the work, making an LCD simulation glow tube clock” ). However, the … Read more

Can Bitwise AND Operator & Be Used on Floating Point Numbers in C? (Part 1) The Mystery of IEEE 754 Standard and Floating Point Representation

Can Bitwise AND Operator & Be Used on Floating Point Numbers in C? (Part 1) The Mystery of IEEE 754 Standard and Floating Point Representation

In C language development, when we attempt to use the bitwise AND operator & on floating point numbers, the compiler will throw an error without mercy. This phenomenon is rooted in the basic principles of number representation, base conversion, and floating point structure in computer science. By delving deeper into this issue, we can uncover … Read more

C Language Special: 17. Logical Operations and Ternary Operator (Bitwise Logic Operations, Conditional Operator)

C Language Special: 17. Logical Operations and Ternary Operator (Bitwise Logic Operations, Conditional Operator)

The logical operators and ternary operator (conditional operator) in C language are very common and fundamental operators, used for boolean logic operations and simplifying conditional expressions. By using these operators appropriately, the code can be made more concise and clear. This article will focus on logical operators, the ternary operator, and bitwise logic operations. 1. … Read more

C++ GESP Level 3 Key Points and Preparation Questions

C++ GESP Level 3 Key Points and Preparation Questions

Detailed Explanation of Core Points for C++ GESP Level 3 In the GESP Level 3 exam, C++ is the core language assessed, and mastering the key points is crucial for success. Today, we will systematically outline the important and frequently tested knowledge points in the GESP Level 3 exam, combined with real questions and practice … Read more

C++ Operations: A Magical Toolkit for Programming

C++ Operations: A Magical Toolkit for Programming

Students, the various operations in C++ are like a magical set of “tools” that allow programs to achieve a wide range of functionalities. Let’s take a look at how these “tools” perform their magic. Arithmetic Operations: The “Magical Arithmetic Class” of Numbers Arithmetic operations are used to handle basic mathematical calculations, just like the addition, … Read more

C++ Bitwise Operations (Ninety-Three) [Part 1]

C++ Bitwise Operations (Ninety-Three) [Part 1]

Long time no see! Due to personal and academic issues, I stopped updating for six months. Today, I will continue to publish articles, and I hope everyone enjoys them.Today, we will learn about: bitwise operations1. Brief Overview of Bitwise OperatorsBitwise operations are a type of operator. When we use a computer, it cannot understand our … Read more

GESP Level 3 C++ Language Syllabus & Knowledge Point Analysis

GESP Level 3 C++ Language Syllabus & Knowledge Point Analysis

GESP Programming Ability Certification Standards from Level 1 to Level 8 (Syllabus)Download link:https://gesp.ccf.org.cn/101/1008/10012.htmlLevel 3 Knowledge Content (C++)The following is a detailed explanation of these knowledge points based on the GESP Level 3 C++ programming language syllabus:1. Data Encoding (Original Code, Inverse Code, Complement Code) 1. Original Code Original code is the most intuitive encoding method. … Read more

Guide to Overcoming Key Challenges in GESP C++ Level 3

Guide to Overcoming Key Challenges in GESP C++ Level 3

This is a guide to overcoming key challenges in the GESP C++ Level 3 exam, summarizing core knowledge points, high-frequency exam topics, and preparation suggestions based on the exam syllabus and analysis of past exam questions, helping candidates to review efficiently: 1. Core Challenges and High-Frequency Topics 1. Data Encoding and Base Conversion Two’s Complement/One’s … Read more

Microcontroller C Language Programming: Bitwise Operations

Microcontroller C Language Programming: Bitwise Operations

This section introduces the basic knowledge of microcontroller programming, following the previous discussions on why C language is used for microcontroller programming and the programming environments required. The first topic to cover is bitwise operations. Bitwise operations are very common when configuring the registers of a microcontroller. For example, when configuring a GPIO of a … Read more