Hi, what is the best way to round a double to two decimal places?
ie, if i had the number 77.786 i would want it rounded to 77.79.
I dont want a way to just display this number as two decimal places but to keep it like that so any time i use it it will be 77.79.
Also i cant know anything...
Yeah im pretty sure your right.
Ive commented alot of stuff out and just done some basic testing with debugger.
RIght now all my main does it create one Loan and adds it to the array.
Loan *p1 = new Loan("Lou", "11 Elgin St. Ottawa", Date(14,9,2006), 1000, 6.0, 12);
SetOfLoans carLoans...
It crashes right away and it seems to be some sort of memory crash:
It pops up with some Just in Time Debugger crap, that doesnt say aytnhing other then im not using or w/e.
its an unhandled win32 error or w/e.
capicty is equal to 2 when it crashes.
It surely has something to do with how im...
So i have an array elements and it is declared like this:
Loans ** elements;
elements = new Loans*[initial_size];
where initial_size = 4
I have a remove some element method that checks if it is a good time to shrink the array (ie there is more then twice the amount of space for the amount...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.