Address book management system

catalogue Using C + + to realize an address book management system. 1, Menu function         1. Define menu functions 2. Realize the Exit menu function 2, Add contact 1. Design contact structure and address book structure 2. Add contact API 3, Show contacts 4, Delete contact 1. Verify that the contact exists 2. Delete practitio ...

Posted by koen on Thu, 03 Feb 2022 12:20:49 +0100

FREERTOS learning notes III - message queue

FREERTOS learning notes III - message queue 1. Experimental contents Experiment 2: create two dynamic tasks. Task 1 controls the flashing of LED, and task 2 is used to detect keys. When the key KEY0 is pressed, task 1 is suspended; When key 1 is pressed, task 1 is cancelled and suspended. In Experiment 3, a message queue and two task process ...

Posted by erichar11 on Thu, 03 Feb 2022 10:44:57 +0100

III The representation of structure in memory

The representation of structure in memory structural morphology 1. We talked about struct before. We all know that struct can store many different data types 2. This will inevitably lead to a problem 3. Our structure needs memory alignment 4. If it is not aligned, the memory arrangement will be very disordered (unless there are some special r ...

Posted by PseudoEvolution on Thu, 03 Feb 2022 09:34:33 +0100

Quick sorting with qsort function

catalogue 🍈🍈Foreword 🍈🍈A brief introduction to qsort 🍈🍈Using qsort to realize a sort of integer type 🍈🍈Sorting of structures with qsort function 🍈🍈Implementation of qsort function   📢 preface Share a library function today This paper introduces the use and implementation of qsort It can realize sorting that is not limi ...

Posted by deregular on Thu, 03 Feb 2022 08:37:33 +0100

c language array

Pointer array char *arr4[]= {"hello","world"}; //Eindimensionales Array aus Zeigern amount to: const char *anonymous1="hello"; const char *anonymous2="World"; char *arr5[2] = {anonymous1,anonymous2}; printf("%c %s",arr5[1][4],arr5[0]); Array pointer Define int (*p)[n]; () high priority. First, it means that P is a pointer to an inte ...

Posted by hezll on Thu, 03 Feb 2022 02:03:56 +0100

Advanced pointer

Some error points about pointers: The address of the first element is passed, not the whole array.   About pointer printing: You can use an array or a pointer to print. The pointer will look for the last '\ 0' as the end.   The first dereference print is c. the following print is abcdef It cannot be modif ...

Posted by juancarlosc on Wed, 02 Feb 2022 20:20:23 +0100

C + + 1 | from C to C++

1, From C to C++ 1. Quote Before talking about quotation, first talk about the familiar C language, and then transfer from C to C + +. This can not only consolidate C knowledge, but also easily understand C + +. Example 1. Numerical exchange Exchange the values of a and b There are many ways to realize exchange in C language: Another ...

Posted by noisenet on Wed, 02 Feb 2022 17:21:29 +0100

C language_ Pointer one

Pointer one I The concept of pointer 1. In order to facilitate access to the contents of memory, give each memory unit a number, which we call the address, that is, the pointer The address is the pointer 2. The pointer is also a data type, so the pointer has its own memory and stores the address (number) Four elements int a=10 int* p=& ...

Posted by daeken on Wed, 02 Feb 2022 15:47:16 +0100

Using Libuv thread pool through N-API

Node.js is not suitable for processing time-consuming operations, which has always been a problem. Therefore, node JS provides three solutions. 1 subprocess 2 sub thread 3 Libuv thread pool The first two are more efficient because we only need to write js. But there are also some disadvantages 1. Cost of executing js 2. Although Libuv threa ...

Posted by BMurtagh on Wed, 02 Feb 2022 11:43:04 +0100

Bubble sorting to realize quick sorting qsort C language

Catalogue preface Quick sort Basic use Parameter interpretation Simulation Implementation preface First of all, I wish you a happy New Year 🎉 🎉 🎉! hello ✨, Hello, everyone. This is the original 💖 💛💙, With more and more articles, there may be many partners who can't find the articles they want to read, so I came out. ...

Posted by tsilenzio on Wed, 02 Feb 2022 11:36:44 +0100