- 博客(4)
- 资源 (5)
- 收藏
- 关注
原创 A - Sum of Consecutive Prime Numbers
DescriptionSome positive integers can be represented by a sum of one or more consecutive prime numbers. How many such representations does a given positive integer have? For example, the integer
2013-04-12 22:35:24 532
原创 递归--n阶勒让德多项式的值
#include int main(){ double pfunc(double x,int n); double xparam; int n; std::cout<<"input the parameter x and nubmer n: "; std::cin>>xparam>>n; std::cout<<"the result of the function is:
2013-04-12 15:25:25 624
转载 递归--汉诺塔问题
#include using namespace std;int num=1;void move(char getone,char putone){ cout"<<putone<<endl;}void hanoi(int n,char one,char two,char three){ void move(char getone,char putone); if (n==
2013-04-12 15:06:45 472
原创 c++计算闰年的程序
#include #include int main(){ int year; bool flag=true; std::string str; while (flag) { std::cout<<"Input the year you want to check:"; std::cin>>year; if ((year%4==0&&year%100!=0)
2013-04-11 18:57:27 5311
PHP初级教程
2015-08-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人