HDOJ ten day brush question c++

HDOJ10 day question sequence Four or five roads a day (1.1 represents the first road on the first day), from easy to difficult Let's share my results. They are all AC. please give me your opinion~ Article directory 1.1.HDOJ 1000 1.2.HDOJ 1089 1.3.HDOJ1096 1.4.HDOJ1001 1.5.HDOJ 2000 2.1 HDOJ 2001 2.2 ...

Posted by kevinkorb on Wed, 12 Feb 2020 08:47:19 +0100

C hapter 4 array

Practical question 1 [problem description] Program, realize the following functions: (1) Define two one-dimensional arrays x, y, no more than 50 elements. (2) Enter k integers from the keyboard into array x. (3) Calculate the average value ave of data in x and the number of elements greater than the a ...

Posted by hkay1 on Tue, 21 Jan 2020 15:48:15 +0100

[spock] it's so silky in a single test

Why does everyone hate to write single tests Before about swagger As mentioned in the article, there are two things programmers hate most, one is that others don't write documents, the other is that they write documents themselves. The same holds here if you replace the documentation with unit tests. Every developer understands the role of uni ...

Posted by badt18 on Sun, 03 Nov 2019 21:07:10 +0100

AspectJ usage example

1. Enabling AspectJ annotation support in Spring 1 To use AspectJ annotations in Spring applications, you must include AspectJ class libraries under classpath: aopalliance.jar, aspectj.weaver.jar, and spring-aspects.jar maven Introduces <dependency> <groupId>org.springframework</groupId> <artifactId>spring-aop< ...

Posted by bibby on Wed, 09 Oct 2019 01:11:21 +0200

Spock in Java is slowly falling in love with writing unit tests

Preface Recently, the team introduced Spock testing framework. After I used it in practice, I had a very good experience. At the same time, I learned the relevant knowledge of unit testing in the whole learning process. The purpose of this article is to consolidate the input knowledge and to promote it to all of you. Before we learn about the ...

Posted by dethron on Tue, 08 Oct 2019 19:56:41 +0200

Using stack to use simple calculator (Java implementation)

Title: Computing Similar Expressions Using Stack: 5+2*3-2 Computing Results   Tip: Simple calculator is limited to the calculation of numbers less than 10, operation symbols are limited to the calculation of +, -,*, / Analytical thinking: 1. Create a number stack and a symbol stack for storing n ...

Posted by davey_b_ on Mon, 23 Sep 2019 07:30:21 +0200

3D Game Programming

1. Brief Answer Questions (1) Explain the differences and connections between Game Objects and Assets. Game object is a real object in the game, which can be selected and operated, while resources are a modification of the game object, such as a cu ...

Posted by mjlogan on Sat, 07 Sep 2019 11:27:09 +0200

Stack Chapter of Data Structure Knowing or Not Series

May every time I remember, I don't feel guilty about my life. —— Guo Xiaochuan Stack, referred to as LIFO in English Last In First Out, follows the principle of "last in first out". Contrary to "queue", it adds and deletes elements at the head of the stack. If there are no elements in the stack, it is called empt ...

Posted by ven0m on Thu, 29 Aug 2019 16:08:07 +0200

stm32F051 series single chip microcomputer pin timer output pwm waveform to control fan speed

  Summary: Each pin of stm32 has its own special function. The pin with timer output function can output pwm. If not, it can be simulated by io port. If it is not true, it can be theoretically calculated that every pin can output PWM, but genera ...

Posted by rostros on Wed, 21 Aug 2019 07:56:14 +0200

3. python_exception handling

3. Exceptions: python uses special objects called exceptions to manage errors that occur during program execution. Whenever an error occurs that confuses Python, it creates an exception object.If you write code to handle the exception, the program ...

Posted by firstcoastshopping on Wed, 21 Aug 2019 04:05:28 +0200