摘要:
快排:先在数组中选择一个数字,接下来把数组中的数字分为两部分,比选择的数字小的数字移到数组的左边,比选择的数字大的数字移到数组的右边: #include <iostream> using namespace std; int Partition(int data[], int length, int 阅读全文
摘要:
测试和比较语句用于if或脚本命令中: if condition then commands else if conditon then commands fi 或 [ condition ] && command; #如果condition为真则执行command [ condition ] || 阅读全文