第二章
披星戴月_blog
前端
展开
-
第二章 2.30
#include #include using namespace std; int sroot(int i) { return sqrt(i); } long sroot(long l) { return sqrt(l); } double sroot(double d) { return sqrt(d); } int main() { int i=12; long l=123456;原创 2015-04-02 09:42:09 · 368 阅读 · 1 评论 -
第二章 2.29
#include #include using namespace std; void main() { int *Fb=new int[20]; int *i= new int(2); Fb[0]=Fb[1]=1; cout<<setw(5)<<Fb[0]<<setw(5)<<Fb[1]; do { Fb[*i]=Fb[*i-1]+Fb[*i-2]; cout<<set原创 2015-04-02 09:43:52 · 372 阅读 · 1 评论