Integer storage (detailed explanation)

catalogue I Original code, inverse code, complement code II Large and small end storage III Verify by debugging IV integral promotion I Original code, inverse code, complement code #include<stdio.h> int main() {     int a = 1;     //000000000000000 01 - original code     //The positive original code and the negative complement ar ...

Posted by wkoneal on Thu, 23 Dec 2021 08:05:37 +0100

Amazon AWS Kinesis Video Streams with WebRTC demo example

title: Amazon AWS Kinesis Video Streams with WebRTC demo examplecategories:[Linux C]tags: [Amazon cloud platform]date: 2021/12/22< div align = 'right' > Author: Hackett < / div ><div align ='right'> WeChat official account: overtime apes </div>The following step-by-step instructions describe how to download, build, and r ...

Posted by xconspirisist on Thu, 23 Dec 2021 04:02:28 +0100

Search: C language code implementation of linear table (sequential search and half search)

catalogue 1, Definition of two classes of linear table structure 2, Initialization of linear table and establishment of linear table according to input elements 1. Initialization of linear table. Initialize an empty linear table 2. Add elements to the linear table according to user requirements 3, Search the search 1 function in sequence ...

Posted by Biocide on Thu, 23 Dec 2021 00:47:37 +0100

Operators -- small operators are powerful

Arithmetic operators: + - * / % \1. In addition to the% operator, several other operators can act on integers and floating-point numbers %The two operands of the operator must be integers. Returns the remainder after division %The divisor of the operator cannot be 0, otherwise an error will be reported #include <stdio.h> int ...

Posted by sheen.andola on Wed, 22 Dec 2021 21:14:56 +0100

Welcome to the world of Arduino

Welcome to the world of Arduino Hello, related netizens. Since you want to learn Arduino, I hope you have some C language foundation and basic circuit foundation. Arduino is an open source electronic platform; Arduino includes hardware and software. The hardware part is the development board, and the software part is the compiler. Common b ...

Posted by hermzz on Wed, 22 Dec 2021 20:34:26 +0100

The way of C/C + + Learning: polymorphism

The way of C/C + + Learning: polymorphism catalogue Basic concepts of polymorphismUpward type conversion and problemsHow to implement dynamic bindingAbstract base classes and pure virtual functionsPure virtual functions and multiple inheritancevirtual destructor Override, overload, redefine 1. Basic concepts of polymorphism Polymorphism ...

Posted by Zaynt on Wed, 22 Dec 2021 15:37:57 +0100

Data structure sparse matrix X

Data structure - sorting notes of arrays and generalized tables (Chapter 6). If there are errors, please correct them. Compressed storage of special matrix Common body type When the number s of non-zero elements in a matrix with large order is very small relative to the total number t of matrix elements, that is, S ...

Posted by amalosoul on Wed, 22 Dec 2021 11:02:27 +0100

Coding and compiling of messages

Content: Receive a string of message characters from the keyboard and output the corresponding Huffman code. At the same time, it can translate the code string generated by Huffman code and output the corresponding message string. Design requirements:   (1). Construct a Huffman tree;   (2). Implement Huffman coding and d ...

Posted by slobodnium on Wed, 22 Dec 2021 03:16:35 +0100

Detailed explanation of the initial pointer of c language, suitable for beginners

Knowledge points in this section: 1. What is the pointer 2. Pointer and pointer type 3. Field pointer 4. Pointer operation 5. Pointers and arrays 6. Secondary pointer 7. Pointer array 1, What is the pointer Two key points of pointer understanding: 1. The pointer is the number of the smallest cell in memory, that is, the address 2. Th ...

Posted by PHPMagician on Wed, 22 Dec 2021 02:56:50 +0100

Sorting (implemented in C language)

catalogue 1. Sorting and classification 2. Insert sort 2.1 direct insertion sort 2.2. Shell Sort 3. Select Sorting 3.1 selection and sorting 3.2. Heap sort 4. Exchange sorting 4.1 bubble sorting 4.2 quick sort 4.3 quick sort non recursive ​5. Merge sort 5.1 merge sort 5.2 merge sort non recursive 6. Non comparative sorting 6.1 ...

Posted by revdev on Tue, 21 Dec 2021 23:36:45 +0100