Also, while we're here: "1/12" is just the same as "0" -- and if you had tried the (correct) 1.0/12.0, you would have gotten an error message, since you can't use ^ with a floating point number.
Also, while we're here: "1/12" is just the same as "0" -- and if you had tried the (correct) 1.0/12.0, you would have gotten an error message, since you can't use ^ with a floating point number.
Oh, why is that?
Yeah, the aforementioned edit didn't work... It gives me a syntax error...
If it were me, I would pre-calculate (2^(1/12)) and do something like
to avoid this 1/12 problem.Code:pow(1.05946309436,i)
(Especially since 2^(1/12) doesn't change from run to run.)
yeah, that does fix everything, would have done it myself, lacking a good calculator, i figured the program could do it.
To be clearer, that revealed the error, namely a stray parenthesis.
EDIT: Since note is a pointer, would I useorCode:scanf("%5s",note);EDIT(again): Yeah, sorry about the stupid question, I figured it out already...Code:scanf("%5s",¬e);
Last edited by Nicheter; 07-24-2008 at 10:00 AM.