#Can someone help me debug all of the issues in my code?

24 messages · Page 1 of 1 (latest)

mental juniperBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

lime onyx
#

!f

mental juniperBOT
lime onyx
#

for these

kindred bison
#

Count how many arguments are in the function prototypes:

float calcExp(long int, long int);
float calcValue(long int, float, float);
void printResult(long int, float, float, float, char);
lime onyx
#

so should i include the called values?

kindred bison
#

Well calcExp is expecting two arguments, but when you call it, it's only getting one argument. What should that remaining argument be?

lime onyx
#

it was amistake it should only have one

#

but for printresult, i have called values returned from other user defined functions

#

what should i do then?

#

im calling the exp and sum that i got from other user defined functions, what should i do in main?

#

shoudl i do like exp = calcExp

kindred bison
#

When you call the function, you need to give it the arguments. In calcValue's case something like: calcValue(Bit, calcExp(Bit), 1+1)

#

If you don't want to pass that all in yourself every time, then you just call the function instead of taking another argument. For example, calcExp would call calcExp itself to find what the float exp should be

lime onyx
lime onyx
kindred bison
#

Try it

lime onyx
#

okay the errors dissapeared

#

thanks!

mental juniperBOT
#

@lime onyx Has your question been resolved? If so, type !solved :)

lime onyx
#

!solved

mental juniperBOT
#

Thank you and let us know if you have any more questions!

This thread is now set to auto-hide after an hour of inactivity