Похожие чаты

Hi In this code, do-while doesn't work, I expect to see

at least 3 cycle to achieve the root but it shows me only one number which is the final answer, what's the problem?

13 ответов

13 просмотров
Paria.-Z Автор вопроса

https://pastebin.com/EkubSa2h

Paria. Z
https://pastebin.com/EkubSa2h

Another unrelated tip, you have constants, it's better to initialize them as you declare them, and mark as const. Like const double k1 = 30.0;

Paria. Z
https://pastebin.com/EkubSa2h

Forget about my first comment (that I deleted), I've misread your loop code

Paria.-Z Автор вопроса
Pavel
Another unrelated tip, you have constants, it's be...

Thx But actually the issue is not about the constants It is about the do-while loop

Paria. Z
Thx But actually the issue is not about the consta...

Yeah, I'm trying to read it right now, but it's rather complex to decouple it's logic. Have you tried to use a debugger to execute it step-by-step? If I were you that what I would do in the first place

Paria.-Z Автор вопроса
Pavel
Yeah, I'm trying to read it right now, but it's ra...

Thx, Yes I'm Using codeblocks but it didn't show any error The result is correct without Using the loop🤔 I mean it sounds that the loop is not used for calculating the root🤔

Paria.-Z Автор вопроса
Paria. Z
Thx, Yes I'm Using codeblocks but it didn't show a...

Not sure if we're talking about the same thing. From 2:38 https://youtu.be/Jab1qj_QR8s

Paria.-Z Автор вопроса
Pavel
Not sure if we're talking about the same thing. Fr...

Thx, I thought you meant the compiling error😅

Paria. Z
Thx, I thought you meant the compiling error😅

It might be not the best video (grabbed the first from google), but the debugger tool itself is very useful, so I suggest to try it to understand what happening with your code.

Paria.-Z Автор вопроса
Pavel
It might be not the best video (grabbed the first ...

Actually I didn't get What is the difference between debugging a program and the errors which are showed when we compile it

Paria.-Z Автор вопроса
Paria. Z
Actually I didn't get What is the difference betwe...

Because when I order to compile the program it shows me if there is any syntax error, command error and so on

Paria. Z
Because when I order to compile the program it sho...

Yes, and debugging is for other purposes. It is for investigating your compiled program (that already doesn't contain these syntax errors and compiled to machine code) to see its state during some steps of execution.

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

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

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта