2017年2月18日

高精度运算-阶乘累积求和

摘要: # include # include # define N 66 int main(){ int s[N] = {0}, a[N] = {0};// s累加和,a累积求阶乘 int i,j,k,n,digit=1; //digit代表的是数字的位数 scanf("%d",&n); a[0]=1; s[0]=1; if(n==1... 阅读全文

posted @ 2017-02-18 22:23 随风浪子的博客 阅读(2732) 评论(0) 推荐(1)

面试题-Java设计模式举例

摘要: 面试题-Java设计模式举例 1、适配器模式 涉及三个角色:Target目标接口、Adaptee源角色、Adapter适配器;Adapter将源接口适配到目标接口,继承源接口,实现目标接口。 Java I/O操作中很多这样的例子: InputStreamReader 将 InputStream 适配 阅读全文

posted @ 2017-02-18 11:11 随风浪子的博客 阅读(3139) 评论(0) 推荐(0)

导航