Is it happen with you we compile a program but the program not run and we can't find an error for so long? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Is it happen with you we compile a program but the program not run and we can't find an error for so long?

it happen with me most of the times when I making a program on my college computer I am unable to find errors...

5th May 2017, 4:59 PM
Rahul Sharma
Rahul Sharma - avatar
3 Answers
+ 1
Google your errors.Most of the time that solves the problem.Else post it if still problem persists
5th May 2017, 5:32 PM
Nantha
Nantha - avatar
+ 5
Well, if you try to mix c++ and html as your question tag let supposed, it's not surprising ;P Seriously, you need to trace your code as accuratly as needed until you find the error... Much basic/simplest way to do this, is to add successivley output of the concerned variable values at some point of your code until you reach to identify the place where you do a mistake: this could required some patience, and sometimes to let the code away for some time, keep calm, and return study it ^^
5th May 2017, 6:29 PM
visph
visph - avatar
+ 4
If you really can't find your error, try to comment out almost everything and go over every line to see if it works, in c++ you can make lots of output statements, to see if variables changed or just to know if asomething was really executed properly ...
5th May 2017, 7:17 PM
‎ɐısıօլɐ
‎ɐısıօլɐ - avatar