Posted in Programming techniques

Trinary operator in Lua

Trinocular operation Old drivers who are familiar with C / C ++ know trinocular operation a? B: c. This kind of writing replaces simple conditional...

Continue Reading
Posted in Programming techniques

CSS position relative positioning and absolute positioning

First, the four values ​​of position: static, relative, absolute, fixed. Absolute positioning: absolute and fixed are collectively referred to as absolute positioning Relative positioning: relative...

Continue Reading
Posted in Programming techniques

Use nvm to manage different versions of node and npm

This situation is often encountered in our daily development: there are several projects on hand, each project has different requirements, and different projects must rely...

Continue Reading
Posted in Programming techniques

Ways to introduce CSS in HTML

There are 4 ways to introduce CSS in HTML. There are two ways to add CSS code directly to the HTML file, and the other...

Continue Reading
Posted in Programming techniques

Difference between JRE and JDK

Definition JRE (Java Runtime Enviroment) is a runtime environment for Java. For users of Java programs, not developers. If you only downloaded and installed the...

Continue Reading
Posted in Programming techniques

C ++ class constructor initialization list

The constructor initialization list starts with a colon, followed by a comma-separated list of data members, each data member followed by an initializer in parentheses....

Continue Reading
Posted in Programming techniques

PyCharm Installation Tutorial (Windows)

PyCharm is a powerful Python editor that is cross-platform. In view of the fact that the latest version of PyCharm has fewer tutorials, in order...

Continue Reading
Posted in Programming techniques

C about swapping values ​​of two numbers using XOR operation

The exclusive OR operation can achieve the purpose of exchanging two numbers. The code is as follows: void swap (int & a, int & b)...

Continue Reading
Posted in Programming techniques

Difference between Java String, StringBuffer and StringBuilder

String String: string constant, the length of the string is immutable. Strings are immutable in Java. The String class contains the following definitions: / **...

Continue Reading
Posted in Programming techniques

C ++ rand and srand usage

Computer random numbers are all pseudo-random numbers, that is, generated by small M polynomial sequences, where each small sequence is generated with an initial value,...

Continue Reading