Fortune Telling Collection - Comprehensive fortune-telling - Enter a name at random, and then output the last name and the first name respectively. How to write the code thank you

Enter a name at random, and then output the last name and the first name respectively. How to write the code thank you

The specific writing is as follows:

Make a case

Alltrim = 4

Left (Full Trim, 2), Right (Full Trim, 2)

Case length (name) =6

Left (Full Trim, 2), Right (Full Trim, 4)

Case len (name) =8

Left (Full Trim, 4), Right (Full Trim, 4)

Close the case

The main functions of the source code are as follows:

Generate the target code, that is, the code that the computer can recognize.

Explain the software, that is, explain the writing of the software. Many beginners, even a few experienced programmers, ignore the compilation of software instructions, because this part will not be directly displayed in the generated program and will not participate in the compilation.

However, it is of great benefit to software learning, sharing, maintenance and software reuse. Therefore, writing software instructions is considered to be a good habit to create excellent programs in the industry, and some companies also force it to be written.

It should be pointed out that modifying the source code cannot change the generated target code. If the target code needs to be modified accordingly, it must be recompiled.