+ 1

how to run my code in single step executions?

11th Sep 2016, 7:00 PM
ADITYA AVADHANI M.L
ADITYA AVADHANI M.L - avatar
4 Antworten
+ 2
You could either • Add comments to help you understand each step of the code. • cout << something every time something happens in your code so you know what is happening. • (Windows only) use system("pause") to make it so you have to press any key to continue to the next step.
11th Sep 2016, 7:17 PM
Cohen Creber
Cohen Creber - avatar
+ 1
What do you mean?
11th Sep 2016, 7:05 PM
Cohen Creber
Cohen Creber - avatar
+ 1
single step executions give the code in better understanding way that is how this code is actually working in my real time applications
11th Sep 2016, 7:13 PM
ADITYA AVADHANI M.L
ADITYA AVADHANI M.L - avatar
0
single step is a function of the IDE. I do not use IDE so I put "cout << myvar;cin >> dummy;" between each line but cout the variables you want to watch.
11th Sep 2016, 10:02 PM
Tarquin Delphis
Tarquin Delphis - avatar