Latent C language -- data storage

Introduction to data types C language type: 1. Built in type char short int long double float 2. User defined type (construction type) Meaning of type: 1. Use this type to open up the size of memory space (the size determines the scope of use) 2. How to view memory space int main() { int a = 10; float f = 10.0; return 0; } Dif ...

Added by SoN9ne on Fri, 11 Feb 2022 09:28:50 +0200

node.js backend koa2 framework blog project connects to mongodb database to realize simple addition, deletion, modification and query

Required software: vscode, official website link Download: https://code.visualstudio.com/ ; (you can also use the editor you are used to) node.js, official website link Download: http://nodejs.cn/ ; Mongodb, official website download link: https://www.mongodb.com/try/download/community , we can just install the community version. (mac users ...

Added by Rommeo on Fri, 11 Feb 2022 08:56:16 +0200

JAVA notes -- Fundamentals of programming (Part 4)

catalogue 1, Methods and arrays 1. Method i. Definition of method ii. Format of method iii. parameters iv. return value v. Method overload method 2. Array i. Definition of array ii. Define array iii. traversal of array iv. array precautions v. Examples 3. Algorithm i. Bubble sorting algorithm ii. Select Sorting Algorithm iii. d ...

Added by luketheduck on Fri, 11 Feb 2022 07:17:58 +0200

JAVA notes -- object oriented (Part 2)

catalogue 1, One to one relationship of objects 2, static keyword modifies properties and methods 1. Use the static keyword to decorate an attribute 2. Use the static keyword to decorate a method 3, Memory structure diagram and main method and code block 1. Structure diagram of loading class file into memory 2. main method 3. Code block ...

Added by anujgarg on Fri, 11 Feb 2022 06:50:15 +0200

SpringBoot notes: summary of Log configuration and performance comparison

1. What is the role of Log? With the increase of Internet applications, the business is becoming more and more complex, and the demand for recording the operation of the business is also growing. The log framework came into being. The purposes of the log framework are roughly as follows. 1.1 problem tracking Through the log, we can trace ...

Added by englishtom on Fri, 11 Feb 2022 04:36:07 +0200

java recursive exercise

File class recursive exercise Receive a folder path from the keyboard and count the size of the folder Solution: Create keyboard entry objectDefine infinite loopStore and encapsulate the result of keyboard entry into File objectJudge the File objectReturn the folder path objectDefine a summation variableGet all files and folders under t ...

Added by MattDunbar on Fri, 11 Feb 2022 02:33:54 +0200

Sorting algorithm and binary search algorithm

1. Bubble sorting Bubble sorting principle: 1) Compare two adjacent elements. If the preceding element is larger than the following element, exchange the two numbers. After the first traversal, the maximum number will be placed at the last position of the array, that is, array[length - 1]. 2) The last element is skipped during the second trav ...

Added by blindtoad on Thu, 10 Feb 2022 22:27:00 +0200

Advanced C language 9: memory

1. Structure byte alignment 1.1 try #include <stdio.h> struct S1{ char c1; char c2; int n; }; struct S2{ char c1; int n; char c2; }; struct S3{ int n; char c1; char c2; }; int main(){ printf("sizeof(struct S1) = %ld\n",sizeof(struct S1)); printf("sizeof(struct S2) = %ld\n",sizeof(struct S2)); prin ...

Added by kippy on Thu, 10 Feb 2022 19:38:24 +0200

Oppo java interview questions, java calls the client of the micro service interface

preface Whether students or people who have worked, I think they all have the same dream: enter a big factory! Seeing that 2021 is half past, how can we overtake at the corner in the second half of the year and enter the dream factory First of all, you should know that now, whether large or small companies, the interview investigation is not ...

Added by kevin_newbie on Thu, 10 Feb 2022 18:52:19 +0200

[Flask] create ORM mapping and parameter interpretation

Create a class. A class corresponds to a table in a database, and the data attributes of the class correspond to the field names in the table. This class is called mapping class. 1, Proactively create mappings Classes mapped using the Declarative system are defined according to the base class. In other words, each mapped class needs to inhe ...

Added by jbalanski on Thu, 10 Feb 2022 07:48:36 +0200