[C + + open source library] easy to use serial communication API library under Windows and linux
previously on
I wrote two blogs about serial port before
Virtual serial port simulator and serial port debugging assistant tutorialThe C language program periodically receives the data sent by the virtual serial port
The first part mainly introduces the use methods and software recommendations of virtual serial port simulator and serial por ...
Added by cap2cap10 on Thu, 30 Dec 2021 13:39:34 +0200
linux readdir,d_name implementation problem
Problem description
In the struct dirent returned by the operation readdir or scandir, d_name will cause an error, and the subsequent file name output will become very strange. The complete file name cannot be output, or other errors. Examples of error codes are as follows
#define _DEFAULT_SOURCE
#include <dirent.h>
#include <stdio.h ...
Added by Blob on Thu, 30 Dec 2021 13:37:59 +0200
Learning notes use of main function with command line parameters (header song)
Task description
Please write a program: the executable file generated after the program is built (assuming the file name is mycal.exe) put it in the root directory of Disk c, at the command prompt, go to c: \ and type mycal 100 + 200 to run 300.00; type mycal 100*200 to run 20000.00, etc. the operators in the program are consistent with th ...
Added by k.soule on Thu, 30 Dec 2021 08:56:58 +0200
[C language] from introduction to penetration (function)
preface: This article explains to you how to master the basic use and recursion of functions.
C language function is a function used to compile c language, generally including character library function, mathematical function, directory function, process function, diagnosis function, operation function, etc. "Function" is tra ...
Added by JamesU2002 on Thu, 30 Dec 2021 07:08:19 +0200
Embedded programming specification for foreigners
Share the embedded C coding specification of a foreigner on GitHub (collection and close reading)
preface
One of the most important rules when writing code is to examine the surrounding code and try to imitate it. as maintenance personnel, it is frustrating if the patch received is obviously different from the coding style of the ...
Added by chawkimatta on Wed, 29 Dec 2021 20:36:40 +0200
Queue of data structure
preface
By and by, we have learned the sequence list, single linked list, double linked list and stack Today, what bloggers update is the queue in the data structure
1. What is a queue
Queue: a special linear table that only allows inserting data at one end and deleting data at the other end. The queue has the characteristics ...
Added by xymbo on Wed, 29 Dec 2021 18:05:30 +0200
High concurrency learning in Linux -- reactor implementation of epoll
Reactor mode
At present, the mainstream network communication libraries, such as libevent of C/C + + and Netty of Java, use reactor mode. Reactor pattern is a design pattern of event processing. After I/O requests arrive, the service handler uses I/O reuse technology to synchronously send these requests to the relevant request handlers. How to ...
Added by slibob on Wed, 29 Dec 2021 13:02:58 +0200
[C language] those who don't understand pointers must come in and take you to the initial pointer. It's not as difficult as you think.
catalogue
preface
This blog is mainly about the initial pointer, the simple use of pointer, and the use of pointer in solving problems in daily use.
I What is the pointer?
II Pointer and pointer type
2.1} pointer dereference
2.2 pointer + - integer
III Field pointer
3.1 cause of formation
1. Pointer not initialized
2. Poi ...
Added by dmccabe on Wed, 29 Dec 2021 09:25:59 +0200
Data structure and algorithm analysis and learning
Learning records: MOOC data structure Huazhong University of science and technology + Data Structure and Algorithms in C++ - etc
Day 1
2.2 definition of linear table sequential structure in C language
Static allocation: after a fixed size of hardware storage space is allocated to a type variable, if the inserted element exceeds the storage ...
Added by rajavel on Wed, 29 Dec 2021 05:38:38 +0200
C language / C + + common exercises Q & a collection of communication obstacles
C language / C + + common exercises Q & a collection (60): communication barriers
Beauty of procedure
In the Q & a session of CSDN, a little partner asked me for help, hoping to help him solve his confusion. He put forward the following questions and provided the corresponding C language implementation code.
subject
Enter the stud ...
Added by gregambrose on Wed, 29 Dec 2021 03:43:37 +0200