Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. p1kn1c

    Help rounding to two decimal places

    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...
  2. p1kn1c

    Help with shrinking array

    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...
  3. p1kn1c

    Help with shrinking array

    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...
  4. p1kn1c

    Help with shrinking array

    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...

Part and Inventory Search

Back
Top