0
How can I identify error in c++?
2 Antworten
+ 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.
0
And for fragments which may raise errors, you can use exception handling.