for loop in shell

Article directory for loop in shell 1. The usage and running process of C-style for loop usage Operation process 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

[learning notes] OpenCV+C + + (2)

Mat object 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

c language file server

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 of Go language standard library

1.fmt 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 1.1.1Print 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

Writing C language string function manually

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

Details of python datetime module

1, Introduction to datetime module (1) The datetime module contains the following classes: Class name Function description date Date object, common attributes are year, month, day time Time object datetime Date time object, commonly used attributes are hour, minute, second, microsecond datetime_CAPI ...

Posted on Tue, 04 Feb 2020 06:31:06 -0800 by morphius

C + + Learning note 1

1, C + + basic concepts 1, object 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

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 Create map 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

[c++11] right value reference, mobile semantics and perfect forwarding that I understand

      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

Introduction to JavaScript's function s

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 In JavaScript, variables have global and local scopes. In ...

Posted on Mon, 20 Jan 2020 19:10:25 -0800 by kenshintomoe225