Search:

Type: Posts; User: grumpy

Search: Search took 0.04 seconds.

  1. Replies
    4
    Views
    2,743

    Make sure the code you're working with is...

    Make sure the code you're working with is identical to what you posted. Make the required changes. Then delete the executable and object files. Recompile the code and link.

    If using an IDE...
  2. Replies
    4
    Views
    2,743

    The first iteration through the loop year is...

    The first iteration through the loop year is zero, so the argument to exp() is zero. exp(0) is always 1. So the first time through the loop sets cobalt_initial to zero. On subsequent...
Results 1 to 2 of 2