I'm writing a program that tests functions written in my own library created, but i'm having a lot of errors and glitches in it. Tried to fix some of them, but now i got one that i can't even try to understand what happens. (also, sorry for the portuguese written code, lol.)
so what happens in the image is basically what's in the title. The first printf and scanf works well, but the second printf only works after the second scanf, but i didn't write at this order, it's printf and then scanf, not the other way around)
#the second printf only works after the scanf when it had to work before
9 messages · Page 1 of 1 (latest)
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.
@crude sentinel
Screenshots!
Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!
its because your first scanf has \n\n at the end
that requires it to read until theres a non-whitespace character
so it wont stop reading until it sees a non-whitespace character
uh... Trying to understand the explaining, but thank you! You helped a lot now!
@crude sentinel Has your question been resolved? If so, type !solved :)
!solved