#tried to debug for 3 hours, still dont know what to do

16 messages · Page 1 of 1 (latest)

thorn shoreBOT
#

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 run !howto ask.

azure pine
#

an exception is being thrown at:

#

the rest of the code is working fine

dense hedge
#

;compile c -w

pliant fernBOT
#
Program Output
B* = 15.000000
dense hedge
#

Only the very first parameter you're passing to printf is the format string telling printf what to do

#

It doesn't look at the other format strings you are passing

azure pine
#

but why is this happening?

dense hedge
#

Because printf is designed this way

azure pine
#

so i need to printf for each one?

dense hedge
#

Either do multiple printfs or printf("B* = %lf RT = %lf ...", B, RT, ...)

#

where you fill in the ...'s

azure pine
#

thanks

#

@dense hedgethank god

#

it finally works

#

!solved