Flow-control structures: Difference between revisions
Content added Content deleted
m (Added to <20 category) |
m (Aesthetic change) |
||
Line 53: | Line 53: | ||
=== Exceptions === |
=== Exceptions === |
||
{{works with|GCC|4.0.2}} |
{{works with|GCC|4.0.2}} |
||
Exceptions are a way to give control back to a direct or indirect caller in case of an error. Note that throwing exceptions is usually very expensive, therefore they generally should only be used for exceptional situations. |
Exceptions are a way to give control back to a direct or indirect caller in case of an error. Note that throwing exceptions is usually very expensive, therefore they generally should only be used for exceptional situations. |
||
#include <iostream> |
#include <iostream> |
||
Line 184: | Line 183: | ||
=={{header|Perl}}== |
=={{header|Perl}}== |
||
{{works with|Perl|5.x}} |
{{works with|Perl|5.x}} |
||
===goto=== |
===goto=== |
||