-
Version 2 supports library specs
Assemblies Window Assembly 1
Assembly variable a, integer.
Assembly variable b, integer.
Assembly variable c, integer.
Assembly variable d, integer.
Assembly variable x, integer.
Assembly variable y, integer.
Subroutine button 1 is clicked, and in the case of 4 digits, no matter how fast you are, he can accurately judge it.
If there are a lot of them, this method is not suitable.
a takes a random number (1, 99).
b Take a random number (1, 99).
c takes a random number (1, 99).
d takes a random number (1, 99).
Debug output (a, b, c, d).
Judgment start (a b).
x a default.
x b judgment ends.
Judgment start (CD).
y c defaults.
y d judgment ends.
Judgment Start (x y).
Debug output ("Minimum:",x).
Default. Debug output ("Minimum:",y).
End of judgment. The subroutine Startup Window is created.
Set the random number seed ().
-
Algorithm steps can be used to calculate:
Version 2: Judgment Start (A B and A C) Judgment Start (A D).
Infobox (to text (a), 0, ).
Default. The infobox (to text (d), 0, ) judgment ends. Judgment (b c).
Judgment begins (b d).
Infobox (to text (b), 0, ).
Default. The infobox (to text (d), 0, ) judgment ends. Judgment (CD).
Infobox (to text (c), 0, ).
Default. Infobox (to text (d), 0, ) Note: Do not include equality, this is the fastest algorithm. )
-
Version 2 supports library specs
Assemblies Window Assembly 1
Subroutine button 1 is clicked.
Local variables are the smallest, integer type.
Local variable a, integer type.
Local variable b, integer type.
The local variable c, an integer.
The local variable d, of the integer type.
a = 120
b = 282
c = 200
d = 180
If (a b).
Minimal a
Otherwise. Smallest b
If it ends. If true (c minimum).
Smallest c
If it's really over.
If true (d minimum).
Minimal d
If it's really over.
Debug output (minimal).
-
.Version 2
Assemblies Window Assembly 1
Assembly Variables Split number, integer, ,"0"
Subroutines Integer arrangement.
Parameter size arrangement, logical.
Local variables are counted, integers.
Clear the array (divided numbers).'Reset the array to zero to clear the last data. Count the first of the loop (take the length of the text (Box 1.)contents), counting) to join the members (split numbers, to numeric values (taken in the middle of the text (Box 1.)
Contents, counting, 1)))).'Split the text numbers and store them in an array.
Counting cycle tail ().
Box 1Contents
Judgment Start (Size Arrangement True).
Array sorting (divided numbers, false).'Sort. Default array sorting (split numbers, ).
End of judgment. Box 1Contents Box 1Content to text (split number [counting]).'Display.
Counting cycle tail ().
The subroutines from largest to smallest are clicked.
Integer permutation (true).
The sub-program from small to large is clicked.
Integer permutation (false).
-
Write all the numbers directly into a numeric (integer, double decimals) array, then perform array sorting, and then return.
-
Use the bubbling sorting method.
Easy Language**:
Array =c = 1
b = take the number of array members (array).
Determine the cycle head (c >0).
c = 0 variable at the beginning of the loop (1, b 1, 1, d).If true (array [d] > array [d + 1]).'This is used to compare two data, which can be modified to, pinyin, number size, text length, and so on.
e = array [d].
Array [d] = array [d + 1].
Array [d + 1] = e
b = dc = c + 1
If it's really over.
Variable loop tail ().
Judge the end of the cycle ().
As for finding the corresponding letters of the numerical value, I have a doubt, how can only 26 letters correspond to a large amount of data? What are your rules for assigning letters to each piece of data, please ask.
-
There are 2 errors in your program, 1)b=2, which will always be compared to the size of the array [2]; 2) If the ratio is to the size, the result of the number conversion is two numbers of the same size.
Version 2 Assemblies Window Assemblies Launch window.
Assembly variables text, textual.
Assembly Variables Text Group, Text, ,"0"
Assembly Variables Array, Textual, ,"0"
Assembly variables are ordered, integers.
Assembly Variable Count, Integer.
The subroutine Startup Window is created.
Box 1Whether multiple lines are allowed true.
Box 2Whether multiple lines are allowed true.
Box 1 is clicked ().
Subroutine button 1 is clicked.
Text group Split Text (Box 1.)Contents, Box 2Contents
Clear the array (array).
Numeric sort ().
Box 2Add text (array [counting]).
If true (take the number of array members (array) ≠count) box 2Add text (check box 1.)title).
If it's really over.
Counting cycle tail ().
Subroutines Numeric sorting.
The first of the counting cycle (take the number of members of the array (text group), count the times).If true (text group [counting]
to the end of the loop ().
If it's really over.
Text Text group [count].
Count the number of members of the cycle (take the number of members of the array (text group), count).If true (count count or text group [count] to the end of the loop ().)
If it's really over.
If true (check box 1.)Select and to Numeric (Text Group [Count]) to Numeric (Text)).
Text Text group [count].
If it's really over.
If true (check box 1.)Check False and to Numeric (Text Group [Count]) to Numeric (Text)).
Text Text group [count].
If it's really over.
Counting cycle tail ().
Count the number of members of the cycle (take the number of members of the array (text group), count).If true (text group [count] text).
Text group [count].
Join members (arrays, texts).
Jumping out of the loop ().
If it's really over.
Counting cycle tail ().
Counting cycle tail ().
The first of the counting cycle (take the number of members of the array (text group), count the times).If true (text group [counting]
Jumping out of the loop ().
If it's really over.
Counting cycle tail ().
If true (counting, take the number of array members (text group)), sort by number ().
If it's really over.
The subroutine Select Box 1 is clicked.
If (select Box 1.)checked).
Select Box 1title).
Otherwise, check box 1title).
If it ends.
-
.Assemblies Window Assembly 1
Assembly Variables Split number, integer, ,"0"
Subroutines Integer arrangement.
Parameter size arrangement, logical.
Local variables are counted, integers.
Clear the array (divided numbers).'Reset the array to zero to clear the last data. Count the first of the loop (take the length of the text (Box 1.)contents), counting) to join the members (split numbers, to numeric values (taken in the middle of the text (Box 1.)
Contents, counting, 1)))).'Split the text numbers and store them in an array.
Counting cycle tail ().
Box 1Contents
Judgment Start (Size Arrangement True).
Array sorting (divided numbers, false).'Sort. Default array sorting (split numbers, ).
End of judgment. Box 1Contents Box 1Content to text (split number [counting]).'Display.
Counting cycle tail ().
The subroutines from largest to smallest are clicked.
Integer permutation (true).
The sub-program from small to large is clicked.
Integer permutation (false).
-
.Version 2
Support for library specs
Subroutine Startup subprogram, integer, This subprogram is executed first after the program is started. The local variable i, an integer.
Local variables, local arrays, integers, ,"0"
Local variables Local array subscript, integer.
The local variable j, an integer.
Local variables, local buffers, integers.
Variable loop head (9, 1, -1, i).
Join the members (local array, i).
Variable loop tail ().
Debug output (local array).
The local array subscript takes the number of array members (local array).The first of the counting cycles (local array subscript 1, i).The first of the counting cycles (local array subscript i, j).
If true (local array [i] local array [j i]) local buffer local array [i].
Local Array [i] Local Array [j i] Local array [j i] Local buffer. If it's really over.
Counting cycle tail ().
Counting cycle tail ().
Debug output (local array).
Return (0).'You can return any value you want.
-
So you can use the split text to split each number.
Then loop through the text array to a numeric array.
Then use the array sorting method to sort directly.
Version 2 supports library specs
The subroutine Startup Window is created.
Local variables text, textual.
Local variables Textgroup, Text, ,"0"
Local Variables Numeric Groups, Double Decimals, ,"0"
The local variable i, an integer.
Text 1,3,7,1,9,5,3,8,2".
Text group Split text (text, "count the beginning of the cycle (take the number of members of the array (text group), i) join the members (value group, to the value (text group [i])) count the end of the cycle ().
Array sorting (group of values, ).
Debug output (group of values).
-
The content of the box is textual, so let's convert the data to integers and compare them.
-
The content of the box is textual, so let's convert the data to integers and compare them.
-
Because. If true (Box 7.)Contents Box 3Contents
Box 7The content is textual, and you have to compare them to a numerical value.
-
Examples are as follows:
If (to the numeric value (Box 1.)Contents) to the numerical value (Box 2.)Contents)) Box 7Contents, Box 2Contents
Otherwise Box 7Contents Box 1Contents
If it ends. When comparing, remember to add the comparison box to the value first.
-
Sort the values by size, and don't know if it meets your needs.
-
Version 2 if (to the numeric value (label 15.)Title) 100) Label 15Title to text (slider bar 1.)Location) Box 4Contents
Otherwise. If it ends.
If (to the numeric value (label 15.)Title) 100) Label 15Heading 100".
Otherwise. If it ends.
-
You're having a problem with text (tab 15.)title) tag. The title itself is text-based data, so why do you still use the command conversion to text()!
Also, how to compare the size with text, it should be compared with numerical values!
Doesn't the key wizard come with a footstep?,There's this function.,Find it yourself.。
Easy language. Ways to close the window:
1. First of all, in the open home page of Easy Language, open the Easy Language software environment. >>>More
Yi Language is a self-developed Chinese programming language that is suitable for national conditions and is easy to learn and use for people of different levels and professions. Easy Language lowers the threshold for the majority of computer users to program, especially users who do not know English at all or have little understanding of English, can enter the door of Windows programming extremely quickly by using this language. Yi Language Chinese Programming Environment is a programming tool environment that supports programming based on Chinese characters and words, fully visualized, and cross-mainstream operating system platforms. Available in simplified and traditional Chinese, English, Japanese and other languages; Able to call to and from commonly used programming languages; It has interfaces and supporting tools that make full use of various resources such as API, COM, DLL, OCX components, various mainstream databases, and various utilities. >>>More
I'm not going to do it, but I'll give you an idea:
List the names of all the files first, then use the charms to sort them and correspond to them. It's a simple problem, but it's too complicated to implement. >>>More
Agree with the upstairs statement that shelling is a good way to do it. As for this tool, you can take a look, but you need to know that it is very likely to be killed and poisoned after packing. It's not very difficult to add shelling, some of them are foolish, just do it all at once or get some sinister tricks, I'll give you an idea. >>>More