摘要: //最初实现的版本比lisp写的fact要慢很多(1/5的效率),多次优化后终于比lisp快了。还能怎么提高效率?// HugeInt.h: interface for the HugeInt class.#ifndef HUGEINT_H#define HUGEINT_H#include<iostream>#include<vector>class HugeInt{ enum {computebound=1000000000,computewidth=9}; typedef unsigned int eletype;public: HugeInt(); HugeI.. 阅读全文
posted @ 2012-08-21 09:47 vsuu 阅读(690) 评论(0) 推荐(0)