ok, ill change it! it is a function that is defined outside of int main. it has to compute values of a function at each iteration step in a loop statement. hence it is dependent on i! i have defined...
Type: Posts; User: helpmeout
ok, ill change it! it is a function that is defined outside of int main. it has to compute values of a function at each iteration step in a loop statement. hence it is dependent on i! i have defined...
no, i was told by my supervisor that i was meant to write f1 as a function of i when it was in the loop!
can you at least tell me which bit is wrong, the float f1(....) or the f1(...) bit?
ok, im starting to understand a bit more, my programme takes f1 to be float but wants to make it an int? how do i fix the problem? i've tried everything to try and get it to work and nothing is...
yeah, but what does that mean? does no-one here actually know what this is? or does everyone just copy it without understanding it???
:( oh dear, i still dont understand what i have to change though! argh
redefinitions of i and undeclared variables......as in ive used i twice? dont really understand what your saying.
it doesnt build, come up with a few errors, argument from int to float, assignment from int to float
i didnt know you could do that with a cpp! erm, i have now written the vital bits of code in. sorry
I am trying to define a function outside main, and the function will be used inside a loop(think thats where my probelms lie), here are the relevant bits of code. would be grateful of any help you...