C + + syntax notes
Notes (C + +)
This article has some knowledge of C + + syntax and object-oriented, involving the bottom of assembly.
1. Essential differences between programming languages
Compiled language (independent of virtual machine)scripting language Compiled language (virtual machine dependent)C,C++,object-CPHP,Python,JavaScriptJava,Ruby
C + + cod ...
Added by champoi on Sun, 20 Feb 2022 05:51:31 +0200
Spring boot simplifies the basic usage of Mybatis and Mabatis
There are four return value types:
1.1 project integration
1.1.1 create project
1.1.2 import jar package
Description: in POM Add jar package file to XML file
<!--mybatis Dependent package-->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis ...
Added by benkillin on Sun, 20 Feb 2022 05:32:36 +0200
Java basics IO flow
catalogue
1, IO stream
1. Classification of IO streams:
2. Byte input stream
Construction method of FileInputStream
3. Byte buffer stream
Encryption and decoding:
4. Character stream
Classification of character stream
Character output stream
Construction method of OutputStreamWriter
Method for OutputStreamWriter to write data
The di ...
Added by adroit on Sun, 20 Feb 2022 05:26:25 +0200
Encapsulate C++ dll with CLR
Reasons for project proposal
A dynamic link library is written in C + +, which contains h/.lib/.dll three files, but many users use C # to program. At this time, it is necessary to provide a dll that C # can call. There are generally two methods for C # to call dll, namely
dllimport is used to encapsulate functions, but according to the relev ...
Added by Bind on Sun, 20 Feb 2022 03:32:25 +0200
C language classic 100 questions-1
C language classic 100 questions-1
C language classic 100 questions (1-10)
Topic 1: there are 1, 2, 3 and 4 numbers. How many different three digits can be formed without repeated numbers? How much is it?
Program analysis: the numbers that can be filled in hundreds, tens and single digits are 1, 2, 3 and 4. After forming all permutati ...
Added by killsite on Sun, 20 Feb 2022 03:03:14 +0200
c language string function and memory function
Fill in the notes for a holiday. Maybe more than ten or twenty articles will be published this month.
What is a string
"hello world.\n"
This string of characters enclosed in double quotation marks is called string literal, or string for short.
The processing of characters and strings in C language is very frequent, but C language it ...
Added by acrayne on Sun, 20 Feb 2022 02:33:56 +0200
Spring controls inversion and dependency injection
Controls the type of inversion
Inversion of control (IOC) aims to provide a simpler mechanism to set the dependencies of components and manage them throughout the life cycle. Generally, control inversion can be divided into two subtypes: dependency injection (DI) and dependency lookup (DL). These subtypes can be further decomposed into the s ...
Added by figo2476 on Sun, 20 Feb 2022 02:19:55 +0200
Summary of Java Basics
I always think of beginners in my spare time java The basics of learning,
However, it seems that yesterday's basic knowledge sometimes can't remember its principle and knowledge points.
So review the summary notes again. Encourage each other!!!
At the same time, find the feeling of learning!!!
1, Introduction to Java
Java is betwe ...
Added by zesoft.net on Sun, 20 Feb 2022 02:11:48 +0200
About the intern method of String class in java
About the intern method of String class in java
Antecedents
During the review, I thought I understood the meaning of the String intern method when I wrote the section of common classes in notes, which is to return the address of the String constant in the String constant pool!
String s1 = new String("zs");
String s2 = s1.intern();
Syste ...
Added by kishanprasad on Sun, 20 Feb 2022 01:47:00 +0200
Implementation principle of ConcurrentHashMap ~java7
preface
Recently, when I read some articles about ConcurrentHashMap, I always said: before jdk8, ConcurrentHashMap used segment lock to ensure concurrency security. The jdk8 abandons the segmented lock and ensures the concurrency security through the sycronized keyword + CAS. Although it probably means so, it doesn't feel thorough enough, so I ...
Added by eatc7402 on Sun, 20 Feb 2022 01:35:51 +0200