排序模版 引用 具体实现过程 的 示例 ↓ 只能看看 别复制 复制到易语言也跑不起来的通用型要易语言自己生成的或者易源码里面复制的才跑的起来
窗口程序集名 | 保 留 | 保 留 | 备 注 | 窗口程序集_启动窗口 | | | | 变量名 | 类 型 | 数组 | 备 注 | 猪圈 | 大肥猪 | 10 | 置随机数种子 ()计次循环首 (取数组成员数 (猪圈 ), 计次 )猪圈 [计次 ].体重 = 取随机数 (10, 100 )计次循环尾 ()计次循环首 (取数组成员数 (猪圈 ), 计次 )调试输出 (猪圈 [计次 ].体重, “排序前”)计次循环尾 ()调试输出 (“分割符”)通用排序 (猪圈, 猪圈 [1 ].体重, 取运行时数据类型 (猪圈 [1 ].体重 ), 真)计次循环首 (取数组成员数 (猪圈 ), 计次 )调试输出 (猪圈 [计次 ].体重, “排序后”)计次循环尾 ()|
通用排序 | 逻辑型 | | |
待排数组 | 通用型 | | | | 数据成员 | 通用型 | | | | 数据类型 | 整数型 | | | | 真升假降 | 逻辑型 | | | |
变量名 | 类 型 | 静态 | 数组 | 备 注 | 局_地址 | 整数型 | | | 局_偏移 | 整数型 | | |
局_地址 = 0 局_偏移 = 0 置入代码 ({ 139, 69, 8, 137, 69, 252, 139, 0, 131, 192, 8, 139, 0, 139, 93, 12, 41, 195, 137, 93, 248 }) 判断 (数据类型 = 十六进制 (“00000000”)) 返回 (假)判断 (数据类型 = 十六进制 (“80000000”)) 返回 (假)判断 (数据类型 = 十六进制 (“80000101”)) 判断 (数据类型 = 十六进制 (“80000201”)) 判断 (数据类型 = 十六进制 (“80000301”)) 数组_排序I_自定义_ASM_传地址 (局_地址, 局_偏移, 真升假降 ) 判断 (数据类型 = 十六进制 (“80000401”)) 判断 (数据类型 = 十六进制 (“80000501”)) 判断 (数据类型 = 十六进制 (“80000601”)) 判断 (数据类型 = 十六进制 (“80000001”)) 返回 (假)判断 (数据类型 = 十六进制 (“80000002”)) 返回 (假)判断 (数据类型 = 十六进制 (“80000003”)) 判断 (数据类型 = 十六进制 (“80000004”)) 判断 (数据类型 = 十六进制 (“80000005”)) 返回 (假)判断 (数据类型 = 十六进制 (“80000006”)) 返回 (假)判断 (数据类型 = 十六进制 (“80000007”)) 返回 (假)返回 (假)返回 (假)
|
排序_整数型 | 逻辑型 | | |
参_地址 | 整数型 | | | | 参_偏移 | 整数型 | | | | 参_升降 | 逻辑型 | | | | 返回 (真)|
数组_排序I_自定义_ASM | | | |
参_自定义数据数组 | 通用型 | | | | 参_数据偏移 | 整数型 | | | | 参_方向 | 逻辑型 | | | | 判断 (参_方向 或 是否为空 (参_方向 )) 置入代码 ({ 139, 77, 8, 139, 9, 227, 27, 131, 57, 1, 117, 22, 139, 81, 4, 133, 210, 116, 15, 131, 193, 8, 74, 255, 117, 12, 82, 51, 210, 232, 4, 0, 0, 0, 201, 194, 16, 0, 86, 87, 83, 85, 131, 236, 8, 139, 233, 139, 68, 36, 32, 139, 216, 139, 116, 36, 28, 235, 2, 139, 215, 139, 250, 141, 12, 22, 209, 233, 139, 198, 139, 76, 141, 0, 59, 214, 119, 84, 137, 20, 36, 139, 116, 189, 0, 139, 20, 25, 59, 20, 30, 126, 10, 71, 139, 116, 189, 0, 59, 20, 30, 127, 246, 133, 192, 116, 87, 137, 124, 36, 4, 139, 124, 133, 0, 59, 20, 31, 125, 64, 72, 117, 244, 139, 124, 36, 4, 59, 248, 119, 24, 139, 84, 133, 0, 137, 84, 189, 0, 71, 137, 116, 133, 0, 51, 246, 59, 240, 131, 216, 0, 59, 248, 118, 182, 139, 116, 36, 28, 139, 20, 36, 141, 71, 255, 59, 208, 115, 9, 83, 139, 205, 80, 232, 116, 255, 255, 255, 59, 254, 114, 133, 235, 16, 139, 124, 36, 4, 59, 248, 118, 195, 235, 217, 59, 248, 118, 189, 235, 211, 131, 196, 8, 93, 91, 95, 94, 194, 8, 0 }) 置入代码 ({ 139, 77, 8, 139, 9, 227, 27, 131, 57, 1, 117, 22, 139, 81, 4, 133, 210, 116, 15, 131, 193, 8, 74, 255, 117, 12, 82, 51, 210, 232, 4, 0, 0, 0, 201, 194, 16, 0, 86, 87, 83, 85, 131, 236, 8, 139, 233, 139, 68, 36, 32, 139, 216, 139, 116, 36, 28, 235, 2, 139, 215, 139, 250, 141, 12, 22, 209, 233, 139, 198, 139, 76, 141, 0, 59, 214, 119, 84, 137, 20, 36, 139, 116, 189, 0, 139, 20, 25, 59, 20, 30, 125, 10, 71, 139, 116, 189, 0, 59, 20, 30, 124, 246, 133, 192, 116, 87, 137, 124, 36, 4, 139, 124, 133, 0, 59, 20, 31, 126, 64, 72, 117, 244, 139, 124, 36, 4, 59, 248, 119, 24, 139, 84, 133, 0, 137, 84, 189, 0, 71, 137, 116, 133, 0, 51, 246, 59, 240, 131, 216, 0, 59, 248, 118, 182, 139, 116, 36, 28, 139, 20, 36, 141, 71, 255, 59, 208, 115, 9, 83, 139, 205, 80, 232, 116, 255, 255, 255, 59, 254, 114, 133, 235, 16, 139, 124, 36, 4, 59, 248, 118, 195, 235, 217, 59, 248, 118, 189, 235, 211, 131, 196, 8, 93, 91, 95, 94, 194, 8, 0 })
|
数组_排序I_自定义_ASM_传地址 | | | |
参_自定义数据数组 | 整数型 | | | | 参_数据偏移 | 整数型 | | | | 参_方向 | 逻辑型 | | | | 判断 (参_方向 或 是否为空 (参_方向 )) 置入代码 ({ 139, 77, 8, 139, 9, 227, 27, 131, 57, 1, 117, 22, 139, 81, 4, 133, 210, 116, 15, 131, 193, 8, 74, 255, 117, 12, 82, 51, 210, 232, 4, 0, 0, 0, 201, 194, 16, 0, 86, 87, 83, 85, 131, 236, 8, 139, 233, 139, 68, 36, 32, 139, 216, 139, 116, 36, 28, 235, 2, 139, 215, 139, 250, 141, 12, 22, 209, 233, 139, 198, 139, 76, 141, 0, 59, 214, 119, 84, 137, 20, 36, 139, 116, 189, 0, 139, 20, 25, 59, 20, 30, 126, 10, 71, 139, 116, 189, 0, 59, 20, 30, 127, 246, 133, 192, 116, 87, 137, 124, 36, 4, 139, 124, 133, 0, 59, 20, 31, 125, 64, 72, 117, 244, 139, 124, 36, 4, 59, 248, 119, 24, 139, 84, 133, 0, 137, 84, 189, 0, 71, 137, 116, 133, 0, 51, 246, 59, 240, 131, 216, 0, 59, 248, 118, 182, 139, 116, 36, 28, 139, 20, 36, 141, 71, 255, 59, 208, 115, 9, 83, 139, 205, 80, 232, 116, 255, 255, 255, 59, 254, 114, 133, 235, 16, 139, 124, 36, 4, 59, 248, 118, 195, 235, 217, 59, 248, 118, 189, 235, 211, 131, 196, 8, 93, 91, 95, 94, 194, 8, 0 }) 置入代码 ({ 139, 77, 8, 139, 9, 227, 27, 131, 57, 1, 117, 22, 139, 81, 4, 133, 210, 116, 15, 131, 193, 8, 74, 255, 117, 12, 82, 51, 210, 232, 4, 0, 0, 0, 201, 194, 16, 0, 86, 87, 83, 85, 131, 236, 8, 139, 233, 139, 68, 36, 32, 139, 216, 139, 116, 36, 28, 235, 2, 139, 215, 139, 250, 141, 12, 22, 209, 233, 139, 198, 139, 76, 141, 0, 59, 214, 119, 84, 137, 20, 36, 139, 116, 189, 0, 139, 20, 25, 59, 20, 30, 125, 10, 71, 139, 116, 189, 0, 59, 20, 30, 124, 246, 133, 192, 116, 87, 137, 124, 36, 4, 139, 124, 133, 0, 59, 20, 31, 126, 64, 72, 117, 244, 139, 124, 36, 4, 59, 248, 119, 24, 139, 84, 133, 0, 137, 84, 189, 0, 71, 137, 116, 133, 0, 51, 246, 59, 240, 131, 216, 0, 59, 248, 118, 182, 139, 116, 36, 28, 139, 20, 36, 141, 71, 255, 59, 208, 115, 9, 83, 139, 205, 80, 232, 116, 255, 255, 255, 59, 254, 114, 133, 235, 16, 139, 124, 36, 4, 59, 248, 118, 195, 235, 217, 59, 248, 118, 189, 235, 211, 131, 196, 8, 93, 91, 95, 94, 194, 8, 0 })
|