In my Programming assignment, I have to use a program provided by my instructor of Fibonnaci numbers and alter it so that instead of showing the amount of time it takes to run the program (Using GetTickCount()), it has to return the maximum and minimum time for each number in the series to be calculated by both Recursive and iterative methods. This is the code:
#include "FiboImp.h"
#include <windows.h>
const int MAXN(45);
int main()
{
unsigned long int before, after, diff, result;
Suggest you place your code in b/n code tags to make it easier to read.
Does it compile? What output do you get? Also someone may want to look at the two functions.