hi, i know what the fibonacci algorithym is, what do you mean by make a complexity function? are you just looking for a function that can work out the numbers for the fibonacci algorithym?
sorry still abit confused, so for example heres a few of the numbers for that algorithm 0,1,1,2,3,5,8,13 and then it goes on. do you need to create somthing in c++ that calculate these numbers? so say if some1 entered in 40 it would show the value of the 40th Fibonacci Number??
You need the Big-O. Search google, this might help: http://www.brpreiss.com/books/opus4/html/page73.html Peace,