2011年4月14日

c++ 128位大数据

摘要: 1classuint1282{3public:4unsignedlonglongh;5unsignedlonglongl;67uint128(){h=0;l=0;}89voidoperator+=(unsignedlonglongl1)10{11unsignedlonglonglow=this->l;12this->l+=l1;13if(this->l<low)h++;14}1516voidoperator+=(uint128l1)17{18unsignedlonglonglow=this->l;19this->h+=l1.h;20this->l+=l 阅读全文

posted @ 2011-04-14 13:15 DrolePeng 阅读(819) 评论(0) 推荐(0) 编辑

导航