Namespaces

A namespace is a feature that allows classes and functions to be created in a restricted scope, that is, accessible only using the name of the namespace as a qualifier for identifiers. Namespaces exist to simplify the task of giving names to classes and functions. In C, all structs and […]

Read More →

Exceptions Inside Exceptions

One of the risks that we incur when working with exceptions, is having to control what is happening when the exception is received in the catch block. An exception is thrown, as we have seen in the article about exceptions when the keyword throw is used. Then, a new object […]

Read More →

Exceptions

An exception is an indication that something unexpected occurred in a C program. The mechanism used by C to handle exceptions is using the try/catch pair of keywords. An exception is represented in C++ by an object that encodes the condition that caused the exceptional event. One can use this […]

Read More →