Basic C language day4

review Conditional operator Expression 1? Expression 2: expression 3 Expression 1 is true and the result is the result of expression 2; Otherwise, it is the result of expression 3. sizeof() operator The memory length of calculation types and variables, in bytes int 4 char 1 float 4 short 2 double 8 ++Self increasing -- self decreasin ...

Posted by techgearfree on Wed, 23 Feb 2022 12:37:15 +0100

C language foundation day2

review Use of vim editor: vi file name vi test. c . C language source file Key i: enter the input mode and insert appears in the lower left corner esc key: exit the input mode. The insert in the lower left corner is gone : wq save and exit vi editor :q! Force exit without saving :wq! Force save exit #include <stdio.h> //#Prepr ...

Posted by trippyd on Wed, 23 Feb 2022 12:32:43 +0100

CAS compareandse source code analysis

What is CAS? There should be two first reactions: 1. Cas single sign on. Of course, this aspect will not be discussed this time; 2. compareAndSet method is the correct way for us to learn code by learning its API first and then mastering its principles. We should not be affected by the cramming teaching when we were young. It is different from ...

Posted by yepster123 on Wed, 23 Feb 2022 11:51:15 +0100

day12 encapsulation and inheritance

1. Implementation principle of static keyword Method area: the method area is a specification proposed by SUN company. JDK8 was called permanent generation before, and JDK8 began to call it metadata. Static area: refers to the area where static related information is stored. Process of creating objects: 1. When we create a new object, ...

Posted by judgenules on Wed, 23 Feb 2022 11:41:21 +0100

Function review: Apache APIs IX implements service discovery based on Nacos

This article introduces the basic concepts of Apache APIs IX and Nacos and the role of the registry, and shows you the specific operations of Apache APIs IX to realize service discovery based on Nacos.background information About Apache APIs IXApache APISIX is a dynamic, real-time and high-performance API gateway, which provides rich traffic ma ...

Posted by csabi_fl on Wed, 23 Feb 2022 10:41:28 +0100

Java foundation - internal classes

You can put the definition of one class inside the definition of another class, which is the inner class. Benefits of using inner classes: It allows you to organize some logically related classes together and control the external access rights of internal classesThe inner class is a code hiding mechanism. At the same time, the inner class a ...

Posted by greepit on Wed, 23 Feb 2022 07:18:35 +0100

[C language] file operation function

[C language] file operation function This article mainly studies the file operation functions * * fopen, fclose, fgetc, fgets, fputc, fputs, fwrite, fread, feof * *. For the above functions, you need to import the header file stdio h Why learn these functions? It must be because we need to store our data and put it into the hard disk for eas ...

Posted by Nicholas on Wed, 23 Feb 2022 05:38:06 +0100

PHP file contains

File contains Thinking: the function of PHP requires that the function must be called in memory, but the function is written in the corresponding PHP file one by one. Must the code in other files be copied to access it? Introduction: if the corresponding function in a file has been written, if you want to use it in other PHP files, yo ...

Posted by juuuugroid on Wed, 23 Feb 2022 02:21:14 +0100

Reading notes of C language programming (Chapter 12 - bit operation)

12.1 bitwise operators C language provides six bitwise operators: &: bitwise AND|: bitwise OR^: bitwise XOR~: reverse< <: move left>>: shift right 12.1.1 bitwise sum operation The bitwise and operator "&" is a binocular operator. Its function is the binary phase and phase corresponding to each of the two number ...

Posted by Jem on Wed, 23 Feb 2022 02:16:08 +0100

Summary of the most complete regular expressions on the whole web to make your work more efficient and efficient

Hello, I'm Glacier~~ I spent two days sorting out these tasks with regular expressions that I often use. My little friends take them away. Thank you. This time I shared the regular expressions that I often used in my work. It is precisely these regular expressions that I have mastered. Ice River writes an average of 200 lines less code per da ...

Posted by jediman on Tue, 22 Feb 2022 18:29:43 +0100