2014年4月7日
摘要: //阶乘。#includeusing namespace std;int factorial(int n){ if(n==0) return 1; else return n*factorial(n-1);}void main(){ int m,s; cout>m; for(int i=1;i>temp;} 阅读全文
posted @ 2014-04-07 23:26 我只个穷小子罢了 阅读(186) 评论(0) 推荐(0)
  2014年3月30日
摘要: #includeusing namespace std;int fibonacci(int n){if(n>n; for(int i=0;i>temp;} 阅读全文
posted @ 2014-03-30 23:43 我只个穷小子罢了 阅读(165) 评论(0) 推荐(0)
摘要: #includeusing namespace std;int main(){ int n; cout>n; int i=0; int a,b,result; a=1; result=0; while (i>temp; } 阅读全文
posted @ 2014-03-30 23:42 我只个穷小子罢了 阅读(112) 评论(0) 推荐(0)