View Single Post
  #2 (permalink)  
Old 06-10-2007, 05:02 PM
Lee's Avatar
Lee Lee is offline
PT Staff*
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: Blackpool, UK
Posts: 616
iTrader: (0)
Lee is just really niceLee is just really niceLee is just really niceLee is just really nice
Using a few if statements would not slow the program down enough for the user to notice a difference, if statements are what C++ is good at i belive.

I am no expert in c++ but i know that the answer should be 6 digits as yuo have said, can you just say if the length of the result is 1 char then add 5 0 before it or 4, 3, 2, 1 etc you get what i mean i hope.

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!