Minesweeping (recursive implementation version) - Happy New Year
catalogue
thinking
Clear logic.
menu
checkerboard
Initialization of two checkerboards
Lay thunder
mine clearance
Judge whether to win or lose
text.c implementation
game.c implementation
game.h implementation
Detailed explanation of recursive part
thinking Clear logic.
For convenience, it is divided into three files: text ...
Posted by rar_ind on Sun, 23 Jan 2022 10:01:28 +0100
Half an hour to achieve Java hand-held web crawler framework!! (complete source code attached, recommended Collection)
Hello, I'm glacier~~
Recently, I was working on a search related project and needed to crawl some links on the network to store them in the index library. Although there are many powerful open-source crawlers, I wrote a simple web crawler with a learning attitude in order to understand the principle.
Just do it. Let's start!
First, introdu ...
Posted by KenGR on Sun, 23 Jan 2022 08:30:34 +0100
Go language Bible - Chapter 10 packages and tools - 10.1 - 10.7
Chapter 10 packages and tools
Now any small program may contain 10000 functions, but we can't build them one by one. Most of them come from others. These functions are reused in a way similar to packages and modules
There are more than 100 go language packages. You can use go list std wc -l to view them in the terminal. Open source packages c ...
Posted by ermarkar on Sun, 23 Jan 2022 06:47:22 +0100
Explain Java reflection mechanism in detail
Explain Java reflection mechanism in detail
Experience the benefits of reflection through cases
case
US group take away - > payment - either paid with WeChat or paid by Alipay.
//Interface maker: meituan takeout
public interface Mtwm {
//Online payment function:
void payOnline();
}
public class WeChat implements Mtwm{
@ ...
Posted by mrdonrule on Sun, 23 Jan 2022 06:45:01 +0100
Python exception handling
Basic concepts of Python exception handling
prit('hehe')
route
File "c:\Users\wyw15\Desktop\python code\testpython_5\test.py", line 3, in <module>
content
prit('hehe')
Name: undefined name“ prit"
NameError: name 'prit' is not defined
This looks like an exception, but it's actually an exception thrown by the program Throw exce ...
Posted by steven fullman on Sun, 23 Jan 2022 03:22:44 +0100
Write a Spring framework with 300 lines of code
Author: Tom bomb architecture
Original link: Handwritten a Spring framework with 300 lines of code. Although the sparrow is small, it has five dirty parts - Nuggets
This article is excerpted from Spring 5 core principles
1 custom configuration
1.1 configure application Properties file
For the convenience of parsing, we use application ...
Posted by CrusaderSean on Sun, 23 Jan 2022 03:10:50 +0100
Spring Security custom authentication logic
Analyze problems
The following is the flow chart of user name / password authentication built in Spring Security. We can start here:
According to the above figure, we can follow suit and customize an authentication process, such as SMS code authentication. In the figure, I have marked the main links involved in the process with different co ...
Posted by unknown on Sat, 22 Jan 2022 20:22:10 +0100
[c language] recognize string character function + memory function | simulation implementation | strlen strcpy strcat strcmp strstr strtok memcpy memmove memset memcmp
Introduction to character function + memory function
a key
Find string length
strlen String function with unlimited length
strcpy,strcat,strcmp Introduction to string functions with limited length
strncpy,strncat,strncmp String lookup
strstr,strtok Error message report
strerror Memory operation function
memcpy,me ...
Posted by yorktown on Sat, 22 Jan 2022 19:49:06 +0100
Java object oriented, constructor, static and block
Java object orientation (2), constructors, static and blocks
First of all, let's understand what object-oriented is. Object-oriented is actually a kind of thinking to deal with problems,
It's like going to pick up a cup of tea;
There are two kinds of thinking, one is object-oriented, the other is process oriented;
Process oriented: wh ...
Posted by Tatara on Sat, 22 Jan 2022 18:43:24 +0100
Understanding internal classes in java
1. Internal class definition
Inner class: define a class in another class or a method. Such a class is called inner class. An inner class is also an encapsulation (protection) The internal class is similar to the real-life car and engine, human and heart. be careful:
Internal classes and external classes can easily access each other's pri ...
Posted by fireice87 on Sat, 22 Jan 2022 18:03:10 +0100