How to dry run c++ programs ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How to dry run c++ programs ?

9th Apr 2017, 12:37 PM
Tehreem
11 Answers
+ 13
Try adding drying agents like calcium hydride (CaH2), sodium metal (in combination with benzophenone) or lithium aluminum hydride (LiAlH4) to your C++ program by declaring the <chemistry> header file. It is very important to do so to avoid memory leaks, which might tamper with your hardware.
9th Apr 2017, 1:27 PM
Hatsy Rei
Hatsy Rei - avatar
+ 12
o.O How do you run em wet? 'Try' maybe but that doesn't make more sense to me.
9th Apr 2017, 12:59 PM
Tashi N
Tashi N - avatar
+ 8
Assume position and oh, RUB IT THROUGH YOUR C++ COMPILER. Rub was intentional, and gl ^_^
9th Apr 2017, 1:49 PM
SoraKatadzuma
SoraKatadzuma - avatar
+ 7
Dry run mean assuming values for input variables on paper and then recording every change in them step by step w.r.t your code till you get the results. It is the usual practice that we follow in flow charts.
9th Apr 2017, 1:11 PM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar
+ 6
Perhaps what you mean by dry is - don't repeat yourself?
9th Apr 2017, 2:29 PM
Kinshuk Vasisht
Kinshuk Vasisht - avatar
+ 6
Dry run means practice run usually done for testing a machine or a software... To test your c++ program take a set of input values and check whether you get the expected outputs for the corresponding inputs... Also try checking if you can get all possible outputs from that set of inputs...
9th Apr 2017, 2:47 PM
Sahana P
Sahana P - avatar
+ 1
Thanks
9th Apr 2017, 1:27 PM
Tehreem
+ 1
It's better to at least get familiar to the term "dry run" .Which I thought the programmers must have known. Unfortunately I was wrong😐
9th Apr 2017, 2:33 PM
Tehreem
+ 1
if you want to dry run for example a for loop assume values for the control variable and then predict the output. Then check the last variable at which the loop ends
9th Apr 2017, 3:03 PM
Karan Vaity
Karan Vaity - avatar
0
If dry run is what you tell is, then you always do it when you code. You can not manually predict every bit of detail in a huge project and programming is actually is figuring out what you need to accomplish and how to get there.
9th Apr 2017, 3:18 PM
Norbivar
Norbivar - avatar
- 2
yes
9th Apr 2017, 12:57 PM
Tehreem