Reply to comment

suggested corrections

I downloaded this and attempted to compile. These are the changes I found necessary to make it compile and work properly:

--return m_fibonacci_values.get(which);
should be:
--return m_fibonacci_values.at(which);

--int value = fibonacci_number(iteration);
should be:
--int value = fibonacci_number(iteration++);

--return fib(num-2) + fib(num-1);
should be:
--return fibonacci_number(num-2) + fibonacci_number(num-1);

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
  • Lines and paragraphs break automatically.
  • You may post PHP code. You should include <?php ?> tags.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • Images can be added to this post.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.