Summary of java IO theory
catalogue
What is I/O?
What are the common IO models?
Two methods commonly used for keyboard input
How many types of IO streams are there in Java?
Since there is a byte stream, why should there be a character stream?
File class
Several ways of reading and writing large files
Note: This article refers to docs/java/basis/io.md · SnailC ...
Posted by ashishag67 on Mon, 21 Feb 2022 15:01:44 +0100
java network programming
*1, There are two main problems in network programming:
* 1. How to accurately locate one or multi state host (IP) on the network; Locate the specific application (port number) on the host
* 2. How to carry out network transmission reliably and efficiently after finding the host
*
*2, Two elements in network programming:
* 1. Corresponding que ...
Posted by rcatal02 on Mon, 21 Feb 2022 14:59:10 +0100
The difference between const and define in C language
I const use
Const is the abbreviation of constant, which means "constant". The things modified by const are subject to mandatory protection, which can prevent accidental changes and improve the robustness of the program. So many C + + programming books suggest: "Use const whenever you need".
1.const modifier variable
#inc ...
Posted by skyer2000 on Mon, 21 Feb 2022 14:57:47 +0100
C + + Basics - overloaded assignment operator '=‘
Why should the assignment operator '=' be overloaded
In some cases, when we write a class, we do not need to overload the "=" operator for the class, because the compilation system provides the default assignment operator "=" for each class. When using this default assignment operator to operate class objects, the operator ...
Posted by scm24 on Mon, 21 Feb 2022 14:53:57 +0100
Chessboard coverage (C + + | divide and conquer | recursion)
Title Description
Description
Chessboard coverage problem: given a chessboard with a size of 2^n2^n small squares, one of the positions has been filled. Now we need to cover the remaining small squares with an L-shape (remove one of the small squares from the large squares composed of 22 small squares). Find out the covering scheme, th ...
Posted by bogeyman on Mon, 21 Feb 2022 14:50:08 +0100
[day 27 of getting started with python] python function - built-in function
Built in function
Some functions have been used before. Some people will ask why I can use them directly without importing this function? Because these functions are defined in a module called builtins, which is automatically imported when the Python environment is started by default, you can use these functions directly. We can output in ...
Posted by netpumber on Mon, 21 Feb 2022 14:44:34 +0100
Android MVVM framework uses Notepad to enhance: view type, batch deletion and search notes
preface
in the last article, I completed the basic function of Notepad, that is, adding, deleting, modifying and querying. This paper enhances some functions, which will make the user experience better. After completing this article, you can realize the following effect diagram
text
the functions are written ...
Posted by kevinn on Mon, 21 Feb 2022 14:41:26 +0100
Use nodejs to add a full page translucent watermark to the picture
Business backgroundAs the export function of middle and background projects, it is usually required to have the traceability of export.When the exported data form is a picture, a watermark is usually added to the picture to achieve this purpose.DEMOSo how to add a watermark that can be used as the identity of the exporter before exporting the p ...
Posted by WilliamNz on Mon, 21 Feb 2022 14:37:47 +0100
Three attributes of components: state, props and refs
1, Three attributes of component instance
(1)state
View status: there is a property on the written component instance, state, which represents the status of the component.
Next, we write a stateful component:
<body>
<div id="test"></div>
<script type="text/babel">
// Create component
class ...
Posted by misxa on Mon, 21 Feb 2022 14:27:37 +0100
Simple understanding of sorting algorithm
Before carrying out many convenient algorithms, it is always necessary to realize the ordering of objects, which will use the sorting related algorithms. Even though many high-level languages have completed the encapsulation of the sorting algorithm, users only need to import the corresponding library file to call the sorting algorithm to compl ...
Posted by texerasmo on Mon, 21 Feb 2022 14:23:38 +0100