The principle and use of SEL

concept SEL: method name (number)IMP: a function pointer that holds the address of the method@Selector (method name) gets the number of the method, resulting in SEL type. His behavior is basically equivalent to the function pointer in C languagedifference In C language, the function name can be assigned directly to a function pointer, and the f ...

Added by rinjani on Fri, 26 Jun 2020 06:08:56 +0300

Information management system of students' dormitory in data structure course design

1, Problem statement Dormitories are equivalent to the existence of home for college students in school life, and dormitories management is an important part of school logistics management. How to intuitively understand the occupancy of dormitories and the accommodation location of each student is an ...

Added by apacheguy on Sun, 21 Jun 2020 08:43:59 +0300

[basic], [v], [supplement] c + + learning diary

C + + learning diary Double colon scope operator Namespace namespace Using declaration and using compilation instructions The enhancement of c + + to c Memory allocation of const The difference between const and define Inline function extern explicit Singleton mode Up down type conversion Type conver ...

Added by ghazianibros on Sun, 21 Jun 2020 06:30:36 +0300

Linux (programming): 37 -- OpenSSL Library (memory allocation)

1, OpenSSL memory allocation When users use memory, the error they are prone to make is memory leak. When users call memory allocation and release functions, it is more difficult to find memory leaks. OpenSSL provides built-in memory allocation / release functions. If the user calls OpenSSL's memor ...

Added by wafflestomper on Tue, 16 Jun 2020 06:52:37 +0300

Bottom principles of iOS - bottom principles of GCD

1. Introduction 1. What is GCD? The full name is Grand Central Dispatch Pure C language provides many powerful functions 2. Advantages of GCD GCD is Apple's solution for multi-core parallel computing GCD will automatically utilize more CPU cores (such as dual core and quad core) GCD automatical ...

Added by anushka on Sat, 13 Jun 2020 10:46:25 +0300

The realization of Joseph's link list in C language

The realization of Joseph's link list in C language Joseph Ring is generally used for games in life Code block linklist.cpp: // linklist.cpp : defines the entry point for the console application. // #include "stdafx.h" #include "linklist.h" using namespace std; int _tmain(int argc, _TCHAR* argv[]) { l ...

Added by eatc7402 on Sun, 31 May 2020 13:08:12 +0300

Aggregate operators of [LINQ standard query operator summary]

LINQ in C ා provides two operation modes: query expression and query operator. All query expressions are replaced by corresponding query operator classes. Query expression is a bit of "class" SQL. When writing SQL in the code, I always feel that it is not "elegant". Using query operators is "elegant". This series i ...

Added by nloding on Sat, 30 May 2020 17:01:17 +0300

Analysis of ref and out parameters

The parameter passed by reference is a major feature of C ා compared with many other languages. It's not easy to understand this concept in depth. It's even more dizzy to mix the value type and reference type.I often see people confuse passing by reference with reference type, which makes me a little annoyed. Plus an interesting question I met ...

Added by skovela on Mon, 18 May 2020 04:25:18 +0300

Pointer to function

(1) Function pointer Definition: if a function is defined in the program, the compilation system allocates a storage space for the function code at compile time. The starting address of this storage space is called the pointer of this function. (2) Calling functions with function pointer variables Small example, take the maximum value #include ...

Added by kcomer on Fri, 01 May 2020 23:43:46 +0300

PHP7.4 a new way to expand FFI

With PHP 7.4, there is an extension that I think is very useful: PHP FFI (Foreign Function interface), which refers to a description in PHP FFI RFC   For PHP, FFI opens a way to write PHP extensions and bindings to C libraries in pure PHP. Yes, FFI provides high-level languages to call each other directly. For PHP, FFI allows us to call various ...

Added by pgudge on Tue, 28 Apr 2020 15:57:51 +0300