⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.html

📁 这个程序是一个Win32程序
💻 HTML
字号:
<html>
<head>
<title>Program #9 - Fibonacci Analysis</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF">
<p><font color="#0000FF" size="+2">R</font><font color="#0900FF" size="+2">a</font><font color="#1200FF" size="+2">z</font><font color="#1B00FF" size="+2">o</font><font color="#2400FF" size="+2">r</font><font color="#2E00FF" size="+2">f</font><font color="#3700FF" size="+2">i</font><font color="#4000FF" size="+2">s</font><font color="#4900FF" size="+2">h</font><font color="#5200FF" size="+2"> 
  </font><font color="#5B00FF" size="+2">W</font><font color="#6400FF" size="+2">i</font><font color="#6D00FF" size="+2">n</font><font color="#7600FF" size="+2">3</font><font color="#8000FF" size="+2">2</font><font color="#8900FF" size="+2"> 
  </font><font color="#9200FF" size="+2">S</font><font color="#9B00FF" size="+2">o</font><font color="#A400FF" size="+2">u</font><font color="#AD00FF" size="+2">r</font><font color="#B600FF" size="+2">c</font><font color="#BF00FF" size="+2">e</font><font color="#C800FF" size="+2"> 
  </font><font color="#D100FF" size="+2">C</font><font color="#DB00FF" size="+2">o</font><font color="#E400FF" size="+2">d</font><font color="#ED00FF" size="+2">e</font><br>
  E-Mail: <a href="mailto:razorfish2k@bigfoot.com">razorfish2k@bigfoot.com</a></p>
<p>Program #9<br>
  December 10th, 2000 [rev. 1]</p>
<p><b>Title: </b> Fibonacci Sequence Algorithm Performance Analysis Application</p>
<p><b>Program description:</b> This program will calculate the nth Fibonacci number, 
  which is defined as f(1) = 1, f(2) = 2, and for n&gt;2, f(n) = f(n-1) + f(n-2). 
  Three methods of calculating f(n) are given in the source code. The first method 
  uses recursion, the second method uses a large array proportional to n, and 
  the third method uses a tiny array of size 2 always. Also, this program features 
  multithreading, so that the application doesn't become frozen while it performs 
  the calculation. For the most part however, this program is an example of using 
  the previously created Win32 App classes. This program has no known bugs nor 
  memory leaks.</p>
<p><b>Implementation description:</b> This program includes the cMsgBox, cDialog, 
  and cWindow classes from previous programs. No modifications are made to the 
  previous classes (code reuse!). This program also uses a resource file for the 
  menu and for the dialog box. This program requires special compliation options 
  due to multithreading capabilities (see the comments at the top of Main.cpp 
  for instructions to compile). This program does not use MFC. This program was 
  compiled using Microsoft Visual C++ 4.0 with default link libraries for a &quot;plain 
  windows application&quot; project.</p>
<p><b>Total number of source files:</b> 8</p>
<p><img src="Image18.gif" width="32" height="32" align="absmiddle"><a href="Main.cpp">Main.cpp</a> 
  [rev. 1]: Simple dialog box program entrypoint.</p>
<p><img src="Image18.gif" width="32" height="32" align="absmiddle"><a href="Window.cpp">Window.cpp</a> 
  [rev. 2]: cWindow implementation</p>
<p><img src="Image18.gif" width="32" height="32" align="absmiddle"><a href="Window.h">Window.h</a> 
  [rev. 2]: cWindow definition.</p>
<p><img src="Image18.gif" width="32" height="32" align="absmiddle"><a href="MsgBox.cpp">MsgBox.cpp</a> 
  [rev. 2]: cMsgBox implementation.</p>
<p><img src="Image18.gif" width="32" height="32" align="absmiddle"><a href="MsgBox.h">MsgBox.h</a> 
  [rev. 2]: cMsgBox definition.</p>
<p><img src="Image18.gif" width="32" height="32" align="absmiddle"><a href="Dialog.cpp">Dialog.cpp</a> 
  [rev. 1]: cDialog implementation.</p>
<p><img src="Image18.gif" width="32" height="32" align="absmiddle"><a href="Dialog.h">Dialog.h</a> 
  [rev. 1]: cDialog definition.</p>
<p><img src="Image18.gif" width="32" height="32" align="absmiddle"><a href="GenClass.h">GenClass.h</a> 
  [rev. 4]: General header files.</p>
<p><b>Supplementary files:</b> 4</p>
<p><img src="Image14.gif" width="32" height="32" align="absmiddle">Try the program! 
  Click <a href="FibNum.exe">here</a> for the executable.</p>
<p><img src="Image17.gif" width="32" height="32" align="absmiddle"><a href="FibNum.mak">FibNum.mak</a> 
  [auto gen'd]: Program #9 Makefile.</p>
<p><img src="Image17.gif" width="32" height="32" align="absmiddle"><a href="FibNum.mdp">FibNum.mdp</a> 
  [auto gen'd]: Program #9 Project workspace.</p>
<p><img src="Image13.gif" width="32" height="32" align="absmiddle"><a href="fibo.gif">FibNum.gif</a> 
  : Program #9 Screenshot.</p>
<p><b>Frequently Asked Questions</b></p>
<p>Q: Why do you have the E-Mail Author button on the dialog box?<br>
  A: Just as an example of how to process another different kind of control on 
  the dialog. </p>
<p>Q: Why did you decide to make the program multi-threaded?<br>
  A: I thought it would be sort of bad-looking if the application froze as if 
  it crashed while it was performing the calculation.</p>
<p>Q: Why do you have #define STRICT at the top of the program?<br>
  A: So that my compiler Visual C++ version 4.0 catches some of the type mismatches 
  that Visual C++ version 6.0 would catch normally. I would like to make my code 
  compatible with Visual C++ version 6.0 wherever possible.</p>
<p>Q: What is that #pragma warning( disable : 4201 4514) at the top of the program?<br>
  A: I changed the warning level for compiling from level 3 to level 4. When I 
  did this, the standard &lt;windows.h&gt; include file generated a bunch of (insignificant) 
  4201 warnings and (insignificant) 4514 warnings. Since level 4 error checking 
  gave me other useful information, I used #pragma to ignore those warnings in 
  &lt;windows.h&gt; instead of going back to warning level 3.</p>
<p></p>
<p>Q: What is the point of this program?<br>
  A: Nothing really. It just demonstrates a really simple Win32 program without 
  using any MFC.</p>
<p>Q: What is this [rev. X] stuff?<br>
  A: It's short for &quot;revision&quot; and I update the counter every time I 
  make a change and publish the source file. I may reuse old files, or I may modify-and-reuse 
  files, and hopefully this numbering system will help remind me of the difference.</p>
<p>Q: What are the supplementary files?<br>
  A: Files that arn't really needed for you to get the program compiled, but may 
  come in handy or be of some sort of interest to you.</p>
<p>&nbsp;</p>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -