- 博客(2)
- 资源 (2)
- 收藏
- 关注
原创 大数阶乘
在笔试,面试中经常会碰到大数的操作问题,用基本的数据类型都有溢出的风险。在此,介绍一种比较好的思路,来计算大数的阶乘,比如。100!首先,定义两个整型的数组:int fac[1000];//暂且先设定是1000位,我称之为“结果数组”int add[1000];//我称之为“进位数组”现在具体说明两个数组的作用:1.fac[1000]比如说,一个数5的阶乘是120,那么我就用这个数组存储它:fac
2007-05-22 15:04:00
801
转载 DELEGATE AND EVENT
DelegateIntroductionAs a variable can be declared as a pointer so can a function. A pointer to a function is a type of variable whose name can be used as a variable although it is not a traditiona
2007-05-09 17:29:00
459
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅