How can I identify error in c++? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

How can I identify error in c++?

6th Jun 2018, 4:36 PM
Nebiyu Getachew
2 Réponses
+ 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
Kinshuk Vasisht
Kinshuk Vasisht - avatar