文件名称:lab02
- 所属分类:
- 控制台(字符窗口)编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2016-01-06
- 文件大小:
- 2.42mb
- 下载次数:
- 0次
- 提 供 者:
- 龙**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
f(n)=f(n-1)+f(n-2) f(0)=f(1)=1,求斐波那契数列第20项,分别用循环和递归的方式,比较时间效率。提示:可以使用c函数clock取出当前系统时间,计算前后各一次,两次相减除以每秒的时钟数,就可以得到以秒为单位的差距-f (n) = f (n-1)+ f (n-2) f (0) = f (1) = 1, Item 20 seeking Fibonacci number Fibonacci sequence that were circulating and recursively, more time effectiveness. Tip: You can use the c function Remove the current system clock time, before and after the calculation each time, twice per second relative to the clock deduction, you can get in seconds gap
(系统自动生成,下载前可以参看下载内容)
下载文件列表
lab02\Debug\lab02.exe
.....\.....\lab02.ilk
.....\.....\lab02.pdb
.....\ipch\lab02-e13a106c\lab02-9aca239d.ipch
.....\lab02\Debug\CL.read.1.tlog
.....\.....\.....\CL.write.1.tlog
.....\.....\.....\lab02.exe.embed.manifest
.....\.....\.....\lab02.exe.embed.manifest.res
.....\.....\.....\lab02.exe.intermediate.manifest
.....\.....\.....\lab02.lastbuildstate
.....\.....\.....\lab02.log
.....\.....\.....\lab02.obj
.....\.....\.....\lab02.pch
.....\.....\.....\lab02_manifest.rc
.....\.....\.....\link-cvtres.read.1.tlog
.....\.....\.....\link-cvtres.write.1.tlog
.....\.....\.....\link.8352-cvtres.read.1.tlog
.....\.....\.....\link.8352-cvtres.write.1.tlog
.....\.....\.....\link.8352.read.1.tlog
.....\.....\.....\link.8352.write.1.tlog
.....\.....\.....\link.read.1.tlog
.....\.....\.....\link.write.1.tlog
.....\.....\.....\mt.read.1.tlog
.....\.....\.....\mt.write.1.tlog
.....\.....\.....\rc.read.1.tlog
.....\.....\.....\rc.write.1.tlog
.....\.....\.....\stdafx.obj
.....\.....\.....\vc100.idb
.....\.....\.....\vc100.pdb
.....\.....\lab02.cpp
.....\.....\lab02.vcxproj
.....\.....\lab02.vcxproj.filters
.....\.....\lab02.vcxproj.user
.....\.....\ReadMe.txt
.....\.....\stdafx.cpp
.....\.....\stdafx.h
.....\.....\targetver.h
.....\lab02.sdf
.....\lab02.sln
.....\lab02.suo
.....\ipch\lab02-e13a106c
.....\lab02\Debug
.....\Debug
.....\ipch
.....\lab02
lab02