C Language Review In-depth Study: Arrays and Pointers

C Array Arrays are sequential collections that store a series of variables of the same type.All arrays consist of contiguous memory locations. Declare Array You need to specify the type and number of elements type arrayName [ arraySize ]; Initialize Array //The number of values between braces { ...

Posted by axiom82 on Sat, 18 Jan 2020 02:40:05 +0100

Two week self-made scripting language - day 5 design of parser

Day 5 design parser 5.1 syntax of stone Listing 5.1 syntax definition of stone primary : "(" expr ")" | NUMBER | IDENTIFIER | STRING factor : "-" primary | primary expr : factor { OP factor } block : "{" [ statement ] { (";" | EOL) [ statement ] } "}" ...

Posted by bostonmacosx on Fri, 17 Jan 2020 15:44:27 +0100

rabbitmq series message idempotency processing

1. springboot Integrating Rabbit MQ We need to create two new projects, one as a producer and the other as a consumer.Add an amqp dependency to pom.xml: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-amqp</artifactId> </dependency> Add rabbitmq information ...

Posted by Sephirangel on Fri, 17 Jan 2020 02:02:21 +0100

Using rime input method in Emacs

When using external input method in email, the biggest problem is that when switching the email mode, there will be a delay for input, because you need to manually switch the input method to the corresponding English mode to use the shortcut keys normally. But if you use Emacs' own input function, you don't need to do these synchronizations. Yo ...

Posted by Merve on Thu, 16 Jan 2020 12:41:19 +0100

[design mode | C ා] design mode learning notes

Article directory 1. Opening and closing principle 2. Single principle 3. Interface isolation principle 4.4. Dependency Inverse Principle 5. Richter's replacement principle 6. Dimitar's Law (the least known principle) 7. Principle of composite reuse 1. Opening and closing principle 2. Single p ...

Posted by jaimitoc30 on Wed, 15 Jan 2020 13:58:02 +0100

Seta introduction to distributed transaction DEMO

>Simple Extensible Autonomous Transacation Architecture, seata is a simple, scalable and highly autonomous distributed architecture SEATA Server Configure >Because we use the official version 1.0.0-GA, most of the instructions found on the Internet are version 0.X, with many changes. For example, the script of db_store.sql is cancelled in ...

Posted by Begby on Wed, 15 Jan 2020 13:57:55 +0100

ch06 object oriented features

Article directory Object oriented features Understanding object-oriented concept Classes and objects Polymorphism inherit Create classes, properties, and actions Class structure Constructor Destructor Class instantiation Use class properties Call class action Using private and public keywords to ...

Posted by himnbandit on Wed, 15 Jan 2020 10:27:27 +0100

Full analysis of Spring Boot email

1. Preface Welcome to read Spring Boot 2 series Although e-mail has been "annealed" in recent years, it still plays an important role in the development. In more formal occasions, we still send messages and receipts by email. Today, let's learn how to send email under Spring Boot. 2. dependence Java sends e-mail based on the jakarta. ...

Posted by Ruud Hermans on Wed, 15 Jan 2020 04:58:54 +0100

Algorithms Verify Palindrome String-Palindrome Chain List

00125 Verify Palindrome String Title Description Given a string, verify that it is a palindrome string, considering only alphabetic and numeric characters, ignoring case. Description: In this topic, we define an empty string as a valid palindrome string. Example 1: Input:'A man, a plan, a canal: Panama' Output: true Example 2: Input:'race a ...

Posted by JeremyTiki on Mon, 13 Jan 2020 01:49:09 +0100

C language uses macro to realize static polymorphism

Overview Polymorphism is an important feature of object-oriented programming. In C + + language, polymorphism means that functions with different functions can use the same function name, and can call functions with different contents with one function name. There are two kinds of polymorphism in C + +: 1. Static polymorphi ...

Posted by n9ne on Fri, 10 Jan 2020 19:46:05 +0100