Do you know all these operators?
1, Original code, inverse code and complement code
1. Original code
The original code is the absolute value of the sign bit plus the true value, that is, the first bit represents the sign and the other bits represent the value
+1: 1* 2 ^0=1 Its original code is 00000000000000000001 -1: 1* 2 ^0=1 Its original code is 100000000 ...
Posted by menriquez on Sat, 25 Dec 2021 14:18:43 +0100
Summary of common input problems under c/c + +
Summarize the common input formats and processing methods in the algorithm test to prevent the occurrence of obvious algorithms. However, due to the poor processing of input problems, the questions were not answered. I fell on this problem.
1, Similarities and differences of several commonly used input functions
1. scanf()
You need to includ ...
Posted by sloppstack on Sat, 25 Dec 2021 08:11:47 +0100
Data structure - Application of stack and queue II
Data structure - Application of stack and queue I
Application of stack in recursion
The essence of recursion is whether the original problem can be transformed into a smaller problem with the same attributes.
Features of function call: the last called function ends first (LIFO).When calling a function, you need to use a stack to store: ① ...
Posted by Whear on Sat, 25 Dec 2021 06:30:03 +0100
4. ☛ electronic ringer based on STM32 √★☆
4, 💙💙 ☛ electronic ringer based on STM32 √★☆ 💙💙
Introduction
As a tool, the answerer has been widely used in various intelligence and knowledge contest occasions. However, the frequency of use of answering devices is low, and some of them are either complicated to make or have low reliability. As a unit, if you buy a responde ...
Posted by Dani34 on Sat, 25 Dec 2021 03:55:02 +0100
C language sorting binary tree BST insertion, deletion and traversal
1, What is a sort binary tree?
If the nodes of a binary tree are one child larger or empty than itself and the other is smaller or empty than itself, such a binary tree is called a sorted binary tree, that is, BST. Then there are two situations. One is that the left child is small and the right child is large, and the other is that the left ch ...
Posted by bgbs on Fri, 24 Dec 2021 16:55:06 +0100
MCU plays arbitrary music code through buzzer: Music MCU code is automatically generated
MCU plays arbitrary music code through buzzer (2): Music MCU code is automatically generated
In the previous section, we have built a buzzer music playing environment based on 51 single chip microcomputer. Next, we can play different music only by manually or automatically adding music code. Of course, the second section will show you how to a ...
Posted by venom999 on Fri, 24 Dec 2021 07:50:29 +0100
EXIT external interrupt configuration description
preface
This paper teaches you to use the external interrupt, connect the key to the IO port, and use the interrupt to control the internal program of the single chip microcomputer. Equipment used: STM32F407
1, Introduction to STM32F4 external interrupt
Each io of STM32F4 can be used as an interrupt input port for external interrupt. STM ...
Posted by tofi84 on Fri, 24 Dec 2021 03:40:18 +0100
An article takes you to understand random numbers
As the basic language of Java, c + + and other languages, c language inevitably has many disadvantages, such as too complex operation of memory, trouble in calling random numbers and so on.
Here we help you sort out the generation and calling of the following random numbers
·rand function and its associated srand function
  ...
Posted by itsureboy on Thu, 23 Dec 2021 21:22:30 +0100
Memory allocation of C program - Ubuntu and STM32
1, Memory allocation of C program
stack area It is automatically allocated and released by the compiler to store the parameter values of functions and the values of local variables. Its operation is similar to the stack in the data structure.heap Generally, it is allocated and released by the programmer. If the programmer does not release ...
Posted by f8ball on Thu, 23 Dec 2021 14:21:52 +0100
Embedded real-time operating system 7 - task priority table
1. Purpose of task priority table
The priority table is used to indicate whether there are ready tasks under the corresponding priority. The operating system kernel always selects the task execution from the highest priority in the priority table, and the ready table is dynamically updated. For example, let's understand the task priority table ...
Posted by essexboy on Thu, 23 Dec 2021 10:01:11 +0100