November 27th, 2009, 04:27 PM
I'm making a MFC program that needs to start invisible, with a timer running. Then on timer expiry, if certain conditions are met, a dialog is supposed to display. I am trying a Dialog based...
July 24th, 2009, 03:59 PM
Sorry I cannot help you much more.
On Linux, with a simple test program, the VM size and RSS do not go down after the map is populated and then cleared. But, on subsequent population/clearing, the...
July 24th, 2009, 12:29 PM
I'ts not surprising that your program takes up more memory than just your small objects. A map is typically implemented as a tree structure, so there will be overhead for the key...
July 23rd, 2009, 10:03 PM
Oh, you have a temp declared at the top of the file, so the double temp declaration in the else clause has no effect in the calculation. It is created, assigned, and discarded in the else clause and...
July 23rd, 2009, 09:47 PM
This is what you need.
double expectedpopulation (double years)// this is the recursion function
if (years == 0)