[C + +] - Introduction to mongoose Network Library

Mongoose is a C language network library, which implements event driven non blocking APIs for TCP, UDP, HTTP, WebSocket, CoAP and MQTT. Mongoose Library Mongoose is a famous embedded network programming library( https://github.com/cesanta/mongoose ); With only a small amount of static and runtime space, it realizes: Ordinary TCP, ordina ...

Posted by iloveny on Thu, 03 Feb 2022 20:04:13 +0100

Third party library cJson for C/C + + json parsing and synthesis

We often use JSON format data for communication in our projects. In particular, we need to implement it on the ARM development board. It is troublesome to process JSON and tear the data by ourselves, but now we have a third-party library! That's cJson! Environmental preparation cJson official library: https://github.com/DaveGamble/cJSONht ...

Posted by neh on Thu, 03 Feb 2022 19:48:49 +0100

vector of STL C ontainer

Preface C++ introduces the idea of object-oriented, and a class can better manage and manipulate some data structures than C. In C, we use fixed-length arrays and dynamic arrays from malloc to maintain a continuous collection of the same type of data In C++, based on the idea of object-oriented, classes for managing spatially continuous homo ...

Posted by Emperor_Jackal on Thu, 03 Feb 2022 18:50:48 +0100

C language file operation

preface When we haven't learned file operation and write code like address book, the original data will be destroyed every time we run it. It will require a lot of physical labor next time. If we learn file operation management, it won't be so troublesome! 1, What is a file Files on disk are files. But in programming, we generally talk a ...

Posted by stuartshields on Thu, 03 Feb 2022 15:22:45 +0100

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

Control output format in C + +

setprecision(n) controls the number of floating-point numbers displayed in the output stream. The default stream output value of C + + is 6 significant bits, so no matter how much data is, only six bits are output. If setprecision(n) is used with setiosflags(ios::fixed) or setiosflags(ios_base::fixed), the number of digits to the right of the d ...

Posted by adamp1 on Thu, 03 Feb 2022 11:25:34 +0100

Item 4: Know how to view deduced types.

This time is right Effective Modern C++ Study notes for Item 4. From the previous introduction, we know that sometimes the results of type derivation are not very obvious. For the sake of safety, we'd better personally verify whether the type derivation meets our expectations. We can obtain some type derivation information in the following ...

Posted by Sherman on Thu, 03 Feb 2022 11:12:19 +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

Introduction to 2D game engine development

Previous section: https://blog.csdn.net/z736248591/article/details/122658701 Build engine framework review In the previous chapter, we created an empty window. In this chapter, we built an engine framework to encapsulate window display and rendering. Frame introduction First, let's introduce the four most important global classes: Directo ...

Posted by danielson2k on Thu, 03 Feb 2022 07:03:49 +0100

C + + review 1: some concepts

Theoretical knowledge Finite state machine Finite state machine is a tool for object behavior modeling. Its main function is to describe the state sequence experienced by an object in its life cycle and how to respond to various events from the outside world. Understanding finite state machine in simple terms Memory model C is divided i ...

Posted by zudo on Thu, 03 Feb 2022 06:16:01 +0100