文件名称:qishixunyou
介绍说明--下载内容均来自于网络,请自行研究使用
2. 编程序,使用如下所谓的简单变量“数据平移”方法来求出Fibonacci数列的第n项(的具体项值)
并显示在屏幕上(正整数n通过键盘输入):说明变量old1=1,old2=1,newItem;新的Fibonacci项newItem总是“距它最近”的前两项(old1与old2)的累加和。而后通过“old1=old2 old2=newItem ”进行所谓的“数据平移”。接着计算另一个新的Fibonacci项newItem,依次循环,直到求出数列的第n项时为止。
-2. A program, use the following simple variable called " data translation" method to calculate the first n Fibonacci sequence item (the value of the specific items) and display on the screen (a positive integer n the keyboard input): Descr iption of variables old1 = 1 , old2 = 1, newItem new Fibonacci item newItem always " away from it recently," the first two (old1 and old2) and cumulative. Then through " old1 = old2 old2 = newItem " so-called " data translation." Then another new Fibonacci calculation item newItem, in cycles, until the find the series until the first n items.
并显示在屏幕上(正整数n通过键盘输入):说明变量old1=1,old2=1,newItem;新的Fibonacci项newItem总是“距它最近”的前两项(old1与old2)的累加和。而后通过“old1=old2 old2=newItem ”进行所谓的“数据平移”。接着计算另一个新的Fibonacci项newItem,依次循环,直到求出数列的第n项时为止。
-2. A program, use the following simple variable called " data translation" method to calculate the first n Fibonacci sequence item (the value of the specific items) and display on the screen (a positive integer n the keyboard input): Descr iption of variables old1 = 1 , old2 = 1, newItem new Fibonacci item newItem always " away from it recently," the first two (old1 and old2) and cumulative. Then through " old1 = old2 old2 = newItem " so-called " data translation." Then another new Fibonacci calculation item newItem, in cycles, until the find the series until the first n items.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
骑士巡游.cpp
1-6骑士巡游.cpp
1-3数据平移.cpp
1-6骑士巡游.cpp
1-3数据平移.cpp