Okay. Thanks for helping. However, I have a new question about a different problem. I have to write a recursive function, pow, that gets two arguments, a floating point variable b and an
integer p and returns bp.
here is what i have
I am really sorry but how would I make 'p' a negative in the pow program? And with the fracts program I asked about earlier I am having some problems with. The problem is that the program is only printing out '0' im not sure if thats correct.
float fracts(float s, float n)
return s; // return the result
float s = 0;
float n = 5,result;
result=fracts(s, n); // put the result in a variable or display it directly
printf("%f ", result);
Either something's very wrong with your compiler, or your computer. I can normally compile over a million lines in a minute or two (counting repeatedly compiled headers from inclusion). Even my old K6-2 took no more than ten seconds to compile a few hundred lines.