Data Structure and Algorithmic Analysis/C Learning Notes
Deterministic jump table
♣Definition of linked list
_About the definition of tables, here I will simply explain that tables are abstract like graphs and sets. data type . It is worth pointing out that each data type has its own operations, such as digit type redundancy.
Basic structure of linked list
/*Structural pointer * PtrToN ...
Posted by Ruchi on Mon, 03 Jun 2019 18:15:57 -0700
Instruction Analysis of Lua5.3 Virtual Machine (1) Overview
Instruction Analysis of Lua5.3 Virtual Machine (1) Overview
Summary
Lua VM uses Register based VM. Instructions access operands in registers that have been allocated.
Add a b C adds register b to the value in register c, and the result is in register a. Standard three-address instruction, each instruction has strong expressive ability, an ...
Posted by DjMikeWatt on Sun, 02 Jun 2019 15:30:37 -0700
IOS Micro Chat Sends Small Video
For playing videos, you should start with the idea of using the simple MPMoviePlayerController class more conveniently and quickly. It is true that there are many things that do not bother us with the API that Apple officially wrapped for us. We can quickly make a video player, but unfortunately, highly encapsulated things prove that custom ...
Posted by Morpheus on Thu, 30 May 2019 13:00:02 -0700
Several ways of mixing python with C
Python has been in the limelight these years, occupying a lot of positions in many fields. The Web, big data, artificial intelligence, operation and maintenance all have its own image, even the graphical interface is doing very well, and even when the word full-stack came out, it seems to be to describe it.
Although Python has GIL problems that ...
Posted by Xager on Tue, 21 May 2019 12:06:04 -0700
Network Programming - select Model (Summary)
Why use the select model?
Answer: Solve the blocking problem of accept(), recv(), send() in the basic C/S model
Differences between select model and C/S model
accept() in the C/S model blocks socket s that have been silly to link to
The select model only solves the problem of accept() being silly, not the problem of recv(),send() execution blo ...
Posted by jwagner on Sun, 19 May 2019 05:36:53 -0700
python advanced-module (14)
I. Modules in python
Friends who have experience in C programming all know that if you want to quote sqrt function in C language, you must introduce math.h header file with the statement # include < math.h>, otherwise you can't call it normally.
So in Python, what if you want to refer to some other functions?
In Python, there is a conc ...
Posted by Heero on Sun, 19 May 2019 03:33:52 -0700
C++ Foundation - Class Inheritance
1. Preface
Well, this series of blogs has become an embarrassing Reading Note for C++ Primer Plus.When using C language, code reuse is often achieved by adding library functions, but one drawback is that the original written code is not fully applicable to the current situation.Class inheritance in OOP design is more flexible than it is. It can ...
Posted by Michan on Fri, 17 May 2019 21:58:34 -0700
C Language Function Call Procedure
Catalog
Catalog
Function Call Procedure in C Language
Disassembly
Creation of main function
Calling procedure of Add function
Destruction of main function
Function Call Procedure in C Language
First up with a piece of code
#include<stdio.h>
int Add(int x, int y)
{
int z = 0;
z = x + y;
...
Posted by taquitosensei on Fri, 17 May 2019 12:43:28 -0700
[aftertaste C] input/output
flow
In C language, stream represents the source of arbitrary input or the destination of arbitrary output.
field name pointer
Access to streams in C programs is achieved through file pointers. The type of this pointer is FILE* (in
Standard stream and redirection
Text files and binary files
In text files, byt ...
Posted by cocpg on Fri, 17 May 2019 04:53:51 -0700
C Language Array and Pointer Summary (Part I)
C Language Array and Pointer Summary (Part I)
1. Similarities:
a+n <=> (unsigned int) a+n * sizoeof (* a) If A is an array, a+n refers to the address of the nth element
p+n <=> (unsigned int) p+n * sizoeof (* p) If P points to an array, p+n points to the address of the nth element
p[n] <=> *(p+n) <=> ...
Posted by mika79 on Thu, 16 May 2019 15:08:48 -0700