Похожие чаты

Https://Hastebin.Com/Goputulafa.Cpp Hey guys in this code, if-condition doesn't work. could anybody help

me to solve this problem?

10 ответов

4 просмотра

Hi. Did you try to debug your code? Set some braeakpints and watch the variables.

What do you mean? if-condition doesn't enter true case?

Paria.-Z Автор вопроса
Paria. Z
yes, I did it didn't show any warnings or errors

Debugging isn't for watching errors! If you had errors, your code wouldn't compile.

Paria.-Z Автор вопроса
swarnim
What do you mean? if-condition doesn't enter true ...

actually fnew is printed 0.04 and the condition is that if fnew is less than 0.00001 we have the root, I don't know why it doesn't work

Paria.-Z Автор вопроса
Пользователь 61653
Debugging isn't for watching errors! If you had e...

yes, I know that. I use codeblocks debugger actually about 3 times😅

Paria. Z
yes, I know that. I use codeblocks debugger actual...

Sit back, take a deep breath and think about what you're doing. Sometimes you're tired and you can't implement the algorithm that exists in your mind. Again, if your code compiled successfully, it's your turn to find out how to get the desired result. (with tools like debuggers,.. )

Paria.-Z Автор вопроса
Пользователь 61653
Sit back, take a deep breath and think about what ...

thx for your advice I've been doing that for about 4 days😅

Paria. Z
thx for your advice I've been doing that for about...

Don't blame yourself. You'll have lots of experience during your journey in programming and they'll help you become master step by step:)

Похожие вопросы

Обсуждают сегодня

Карта сайта