Beginner Rust Notes

Today is the third day of learning rust. First summarize what you learned yesterday so that you can learn something new ~ Learning Material: The Rust Programming Language, Rust Official Tutorial Overview of learning content Getting Started: hello world base code, Hello Cargo trial cargo command. Prog ...

Added by vasse on Mon, 17 Feb 2020 04:18:00 +0200

D 6. this and static keywords in java

Introduction:     D 5. java method overload How do two objects of the same type call a method? So let's take a look at this example I. this class cat{ void print(int i) { System.out.println("There is "+i+" cat."); } } public class ThisObject { public static void main(String []args) { cat c ...

Added by jakeone on Tue, 11 Feb 2020 13:53:49 +0200

C++ - Function

Article Directory function overloading Function overload matching Principle of Function Overload Code Samples Default parameter for a function (default argument) Code Samples Dummy function Code Samples inline function Dynamic memory allocation in C++. Code Samples reference Definition Frequently ...

Added by synchro_irl on Mon, 10 Feb 2020 05:57:58 +0200

Zhejiang University PTA basic programming topic set: 7-13 K candle chart

Zhejiang University PTA < basic programming topic set >: 7-13 K candle chart Topic content The trend of stock price rise and fall is usually represented by K-line chart in candle chart technology, which is divided into daily K-line, weekly K-line and monthly K-line. Take the daily K-line as an e ...

Added by IronWarrior on Sat, 01 Feb 2020 15:46:03 +0200

Practice of "30 day self made operating system" 04 C language and screen display

04 C language and screen display practice In the original text, the author has made great efforts to explain the knowledge of C language, which will not be covered here.. 1. Display mode and memory The content author of the previous day set the display of our operating system to VGA 320*200 8-bit pa ...

Added by ungown_admin on Sun, 26 Jan 2020 18:29:27 +0200

C language RSA algorithm implementation (based on Mbedtls)

In recent projects, RSA algorithm needs to be implemented by C language. Here, I implement it by Mbedtls library. 1. Download Mbedtls First, we put the Mbedtls code into the project, and the related transmission gates are as follows: Official download address of Mbedtls The official website is sl ...

Added by Oni on Tue, 21 Jan 2020 17:24:06 +0200

Python datetime module details

  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, se ...

Added by Profector on Tue, 14 Jan 2020 08:40:19 +0200

C language classic example: monkey chooses King

Question: there are n monkeys numbered in sequence. Report the number from the first monkey. All the monkeys who report m quit, and the last monkey is elected Monkey King Input: n, m Output: Monkey King number The first method is to use array to realize: (it is relatively simple to omit steps) #include <stdio.h> int main() { int n; ...

Added by phui_99 on Thu, 02 Jan 2020 18:02:05 +0200

Basic concept and operation of linked list (1)

1, Basic concept of linked list According to the introduction of data structure, a linear table is a finite sequence of n data elements, its length can be increased or shortened as required, and there are a series of operations on the linear table. Linear table can be divided into two types: sequential storage structure and c ...

Added by Zero20two on Wed, 01 Jan 2020 15:18:48 +0200

Shell script array

bash supports one-dimensional arrays (multi-dimensional arrays are not supported) and does not limit the size of arrays. Similar to C language, the subscript of array elements is numbered from 0. To get the elements in the array, the subscript should be used. The subscript can be an integer or an arithmetic expression, and its ...

Added by t_galan on Tue, 31 Dec 2019 22:51:13 +0200