本文共 283 字,大约阅读时间需要 1 分钟。
T = Initialize();clock_t c1 = clock();i = 10000000;while (i > 0) T = Insert(T, i--);i = 5000001;while (i < 10000000) T = Insert(T, i++);i = 10000000;while (i > 100) T = Remove(T, i--);Travel(T);Destroy(T);clock_t c2 = clock();printf("\n用时: %lu秒\n",(c2 - c1)/CLOCKS_PER_SEC);
转载地址:http://kuegn.baihongyu.com/