0001 #include <iostream> 0002 using namespace std; 0003 0004 /****************************************************************************************** 0005 * 测试、演示用小工具 0006 ******************************************************************************************/ 0007 #include <cstdio> 0008 #include <cstdlib> 0009 #include <ctime> 0010 #include <cmath> 0011 #include <typeinfo> 0012 #include "comparator.h" 0013 0014 #include "checkOrder_Elem.h" 0015 #include "checkOrder_list.h" 0016 #include "checkOrder_vector.h" 0017 0018 #include "double_Elem.h" 0019 #include "increase_Elem.h" 0020 #include "hailstone_Elem.h" 0021 #include "increase_list.h" 0022 #include "increase_vector.h" 0023 0024 #include "crc_Elem.h" 0025 #include "crc_list.h" 0026 #include "crc_vector.h" 0027 0028 #include "rand.h" //随机数 0029 0030 #define max(a,b) (((a) > (b)) ? (a) : (b)) 0031 #define min(a,b) (((a) < (b)) ? (a) : (b)) 0032 0033 #if defined(DSA_DEBUG) //编译开关,控制调试输出 0034 #define DSA(x) { x } //输出 0035 #else 0036 #define DSA(x) //不输出 0037 #endif