August 12th, 2009 by carlos

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 functions are in the global […]

Exceptions Inside Exceptions

August 6th, 2009 by carlos

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 of the type determining the […]


July 27th, 2009 by carlos

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 object by means of the […]