for loop in shell
1. The usage and running process of C-style for loop
General form of for loop
2. Example of C language style for loop
1. Calculate the sum of 1 to 100
2. Omit initialization conditions
3. Omitting judgment conditions
4. Omit auto increas ...
Posted on Sat, 15 Feb 2020 19:51:59 -0800 by saunders1989
Mat object and IplImage object
The image data structure, automatic memory allocation and no memory leakage introduced after Mat object OpenCV2.0 are object-oriented data structures, which are divided into two parts: the head part and the data part.
IplImage has existed since OpenCV was rel ...
Posted on Fri, 07 Feb 2020 07:51:09 -0800 by PHP_apprentice
socket network programming of C language under Linux
As for the detailed steps of server establishment and the knowledge of socket, I have mentioned it in the article of python socket programming. You can refer to that blog about socket programming. Because of the C-related API, the socket API based ...
Posted on Thu, 06 Feb 2020 05:23:51 -0800 by mikewhy
fmt package implements formatted I/O similar to C language printf and scanf. It is mainly divided into two parts: output content and get input content.
1.1 output out
Print The series function outputs the content to the standard output of the system, with the difference
Print Function to output content directly,
Printf The fun ...
Posted on Thu, 06 Feb 2020 04:36:36 -0800 by epilator
C language string library string.h contains many common string functions:
String length function strlen
String comparison function strcmp
String copy function strcpy
String append function strcat
Find character function strchr from left
Right search character function strrchr
Find string function strstr ...
Posted on Wed, 05 Feb 2020 01:55:01 -0800 by xardas
1, Introduction to datetime module
(1) The datetime module contains the following classes:
Date object, common attributes are year, month, day
Date time object, commonly used attributes are hour, minute, second, microsecond
Posted on Tue, 04 Feb 2020 06:31:06 -0800 by morphius
1, C + + basic concepts
The idea of object-oriented is to regard the world as composed of various objects with behaviors. Any object has certain characteristics and behaviors (data and algorithm),
That is, the feature is the data, the behavior is the algorithm, and the algorithm is the f ...
Posted on Sat, 01 Feb 2020 03:20:14 -0800 by dunn_cann
The creation of c/c + + graph
Concept of Graphs
A graph consists of points and lines
If you know how many points there are and which points are wired, you can draw a picture
Lines between points, with and without direction
To create a graph is to create lines between nodes, nodes, and nodes, which can be represented by a two-dimens ...
Posted on Fri, 31 Jan 2020 13:05:05 -0800 by jbreits
Right value reference and mobile semantics are introduced in c + +, which can avoid unnecessary duplication and improve program performance. It's a little hard to understand, so take the time to sort out your understanding.
Left value, right value
All values in C + + must belong to one o ...
Posted on Tue, 21 Jan 2020 01:36:03 -0800 by Ratzzak
1. Scope concept
Any programming language has the concept of scope. In short, scope is the accessible range of variables and functions, that is, scope controls the visibility and life cycle of variables and functions.
Local Scope and Global Scope
Posted on Mon, 20 Jan 2020 19:10:25 -0800 by kenshintomoe225