0

How can I identify error in c++?

6th Jun 2018, 4:36 PM
Nebiyu Getachew
2 Answers
+ 4
Use the -Wall parameter when compiling. Example: g++ -Wall file.cpp This outputs all errors and warnings. Actually errors will be output regardless, but warnings sometimes help us understand and track errors quicker.
6th Jun 2018, 4:54 PM
non
0
And for fragments which may raise errors, you can use exception handling.
7th Jun 2018, 3:01 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar