Month: September 2008

A Guide to Advanced Exception Handling in C++ Programming

An exception usually signals an error. One of the major features in C++ is exception handling, which is a better way of thinking about and handling errors. Thought it doesn’t always indicate an error, it can also signal some particularly unusual even in your program that deserves special attention. This article also covers try, throw, and catch, the C++ keywords that support exception handling.

Read More

Understanding C++ Templates: A Simplified Guide

Learn the basics of C++ templates and how they are used in programming. This article breaks down the concept of templates, their types, and common challenges. From function templates to member function templates, discover their practical applications and potential pitfalls. Whether you’re a beginner or looking to deepen your understanding, this guide provides a straightforward explanation of C++ templates.

Read More

Generic Algorithms – Unlocking the Power of C++ STL Algorithms

Algorithms are are at the core of computing. One intriguing approach is Genetic Algorithms (GAs), which draw inspiration from natural selection and genetics. These algorithms excel at solving optimization and search problems by mimicking evolutionary processes. When it comes to putting these ideas into code, C++ stands out as a powerful and versatile language.

Read More

Graphics in C Language

In a C program, first step is to initialize the graphics drivers on the computer. This is done using the initgraph() method provided in graphics.h  library. In the next few pages we will discuss graphics.h library in more details. Important functions in graphic.h  library will be discussed in details and samples programs will be provided to show the power of C programming language especially for graphic programming developing graphical user interfaces.

Read More