Thread
:
Arithmetic By Percentage
View Single Post
Jan 30th, 2007, 6:55 PM
#
9
DaWei
Resident Grouch
Join Date: Jun 2005
Posts: 6,453
Rep Power:
10
If it makes me a curmudgeon to point out when you're being silly, yes, indeed. The OP distinctly asked for a short way. Merely hiding things so that they aren't visible at the point of invocation doesn't qualify as either short or elegant.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner:
Grumpy on C++ Exceptions
DaWei on Pointers
DaWei
View Public Profile
Visit DaWei's homepage!
Find More Posts by DaWei