Let's talk about the factory model

Classification of design patterns: Design patterns are generally divided into three categories: Creative pattern: factory method pattern, abstract factory pattern, singleton pattern, builder pattern, prototype pattern. Structural mode: adapter mode, decorator mode, agent mode, appearance mode, bridge mode, combination mode and sharing mode. ...

Added by colesw on Thu, 27 Jan 2022 13:49:09 +0200

Detailed interpretation: C language to achieve three pieces of chess

catalog: 1, Explain 2, Multi file creation 3, Design ideas 4, Code implementation 5, Overall code 6, Summary The following is the main body 1, Explain With the gradual deepening of our learning of C language, we can realize some simple games. This paper will introduce the C language to realize the three piece chess game. Through thi ...

Added by sevenmenkes on Thu, 27 Jan 2022 12:19:50 +0200

C language implements the insertion, deletion and search of binary sort tree (detailed illustration)

1 definition of binary sort tree: If its left subtree is not empty, the value of all nodes on the left subtree is less than that of its root node If its right subtree is not empty, the value of all nodes on the right subtree is greater than that of its root node The left and right subtrees of the root node are binary sort trees (bina ...

Added by mubashir on Thu, 27 Jan 2022 08:41:51 +0200

C + + object oriented learning notes

Object Based vs. Object Oriented Object Based: it is designed for a single class Object Oriented: facing the design of multiple classes * *, the relationship between classes and classes. Two classic classifications of classes: Classes without pointer membersClasses with pointer members 1, Classes without pointer members 1. Defensive decla ...

Added by mrblom on Thu, 27 Jan 2022 07:57:26 +0200

How to connect the network: Chapter 2: a life cycle of TCP connection | CSDN creation punch in

The book is based on a simple scenario: the user enters a URL into the browser and returns the response, which is the life cycle of a network request. The book is divided into six parts: The application layer client generates HTTP and delegates it to the protocol stack of the operating systemThe protocol stack (TCP/IP module) calls the netwo ...

Added by countrydj on Thu, 27 Jan 2022 07:33:02 +0200

go language learning [2]

Go language basic data types I Variables and their related contents II Integer type III Floating point type IV Character type V Boolean type Vi String type VII Mutual conversion of basic data types VIII Pointer I Variables and their related contents 1. Use steps of variables: (1) Declare variables (define variables) (2) Assignment (3) Use ...

Added by Ganlek on Thu, 27 Jan 2022 05:05:13 +0200

Does anyone else not understand Bloom filters?

Python wechat ordering applet course video https://edu.csdn.net/course/detail/36074 Python actual combat quantitative transaction financial management system https://edu.csdn.net/course/detail/35475 Does anyone else not understand Bloom filters? 1. Introduction When using cache, we will inevitably consider how to deal with cache avalanche ...

Added by johnpaine on Thu, 27 Jan 2022 02:58:46 +0200

C + + virtual table and virtual destructor

In C + +, the realization of polymorphism is related to the concept of binding. The process of compiling and linking a source program into an executable file is the process of binding (or assembling) the executable code together. Among them, the connection completed before operation becomes static connection (early connection); The binding comp ...

Added by steelmanronald06 on Thu, 27 Jan 2022 02:25:56 +0200

Day16 learning java (File operation, recursive copy, serialization)

File summary java.io.File class: the abstract representation of file and file directory path, which is platform independent File can create, delete and rename files and directories, but file cannot access the file content itself. If you need to access the file content itself, you need to use input / output streams. To represent a real File ...

Added by SBro on Thu, 27 Jan 2022 02:08:35 +0200

python string operation [python nanny level - basic day 5]

What is a string Everything wrapped in quotation marks is a string. In python, Chinese and English sentences need to be wrapped in quotation marks, otherwise an error will be reported For example: 'A string wrapped in single quotes' "A string wrapped in double quotes" '''A string wrapped in three single quotes''' """A string wrapped i ...

Added by shan169 on Thu, 27 Jan 2022 01:45:00 +0200