jagomaniak wrote: > The reason I haven't written void, return and checking for bad > characters etc. is that while I know the stuff, now it seemed > redundant as I wasn't writing the whole program, just the function, > and I guess that was the point of this little exercise Thomas gave me. > (and I wouldn't use it in the program because it's not in main and > there are a few things around it, I haven't told you the whole > homework, it's just the stuff I don't get) I'll try to look at the pow > function, see if I can come up with something. :) > > Thanks!
You only have to worry about positive _integer_ powers. Fractional powers are a LOT harder. That is, you only need to worry about being able to do 14.5671 ^ 7 - not 14.5671 ^ 7.823 (being able to do the ".823" part is not necessary). -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
