Kids learn Java (6): encapsulation

Object oriented has three characteristics: Encapsulation, Inheritance and Polymorphism. This section covers encapsulation. Procedure 1 class Woman { private String name; private int age; private Man husband; public void setName(String name) { this.name = name; } public String getName() { return ...

Posted on Sun, 19 Jul 2020 11:51:29 -0400 by kael.shipman

Dirty_COW_Race_Condition_Attack

Article catalog preface 1. Summary & & summary 2. Preparations 2.1 mmap function 2.1.1 application of MMAP function 2.2.2 difference between MMAP and normal file operation 2.2 copy on write mechanism 2.2.1 mmap function MAP_PRIVATE parameter 2.2.2 madwise function 3. Dirty COW 4. Result ...

Posted on Sat, 27 Jun 2020 22:04:03 -0400 by AceE

Detailed summary of linear table (array, linked list, queue, stack)

Linear table is a very basic and important data structure, which mainly includes the following contents: array Linked list queue Stack Next, I will make a detailed summary of these four data structures, including more than a dozen common operations on the linked list. I hope it will help you. 1. Array Array is a linear table data structure. I ...

Posted on Sat, 27 Jun 2020 00:08:28 -0400 by bache

The installation tutorial of MinGW-w64 for gcc

1, What is MinGW-w64? The full name of MinGW is: Minimalist GNU on Windows. In fact, GCC, the classic open source C language compiler, is ported to the windows platform and contains the Win32 API, so the source code can be compiled into executable programs that can run in windows. In addition, you ...

Posted on Thu, 25 Jun 2020 06:26:36 -0400 by jay_bo

C/C++ implements a simple memory leak detection tool by itself

For learning and practice, it is best to use special tools to truly detect memory leaks. C++ Language   C Language This memory leak detection tool is simple, can only detect the same module, the same thread sent memory leaks, for code debugging in the writing process has some help.If memory leaks ...

Posted on Wed, 24 Jun 2020 21:12:05 -0400 by jmakeig

NumPy: Index + Slice

NumPy: Index + Slice Article Directory NumPy: Index + Slice Introduction Reference text One-dimensional array Multidimensional Array Other indexes Boolean Index order arrangement Conclusion Introduction Previous: NumPy: Start + Create Array .Now that we've been able to build multidimension ...

Posted on Wed, 24 Jun 2020 12:59:59 -0400 by suaji

c language book management system

I. Purpose By designing a program of the book management system, we can make full use of the main knowledge points of the course, consolidate the understanding of modular program design and file operation, and improve the software programming ability. 2. Points of knowledge involved Loops, branching sta ...

Posted on Mon, 22 Jun 2020 21:15:22 -0400 by theblacksheep

Redis -- what data structures does redis have

Redis (3) - what are the data structures of redis Redis has five basic data structures: string, list, hash, set and Zset. These five kinds are the most basic and important parts of redis related knowledge. 1. string: The string in Redis is a kind of dynamic string, which means that users can modify ...

Posted on Thu, 18 Jun 2020 00:28:53 -0400 by powerpants

Snake Eager Game (printf output C version)

This time, we use printf output to implement a classic little game - Snake Eater. The main difficulties are how snake data is stored, how to achieve the effect of turning, how to increase the length after eating food. 1 Construct Snake First, display a small still snake in the picture.The corresponding element of the two-dimensional array ca ...

Posted on Tue, 16 Jun 2020 20:25:04 -0400 by mentalist

Java ~ operating system experiment simulates the elevator scheduling algorithm to achieve the disk scheduling.

Article catalog Experiment content Purpose of the experiment Experimental principle Complete code + test Experiment content Simulation of elevator scheduling algorithm to achieve disk scheduling. Purpose of the experiment Disk is a kind of high-speed, large number of rotating, direct access ...

Posted on Tue, 16 Jun 2020 04:39:09 -0400 by Mr Chris