Category: Tutorials

Compounded Types in C++

Welcome to the another C++ article where we will uncover the language’s flexibility and power through various data types. In this article, we’ll explore the compounded types such as Enumerated Types, Simple Structures, Very Simple Classes, the intriguing concept of the union and Type Conversions in C++. So, buckle up, aspiring programmers, as we embark on a journey to demystify these essential building blocks of C++.

Read More

Advanced Concepts and Patterns in Encapsulation

While grasping the fundamentals of encapsulation is crucial, delving into advanced concepts and patterns elevates code design and maintainability further in C++. In this article, we will explore sophisticated aspects of encapsulation that go beyond the basics and provides you with a deeper understanding of its applications and impact on software development.

Read More

An overview of Generic Containers in C++

Container classes are the solution to a specific kind of code reuse problem. They are building blocks used to create object-oriented programs. They make the internals of a program much easier to construct. A container class describes an object that holds other objects. Container classes are so important that they were considered fundamental to early object-oriented languages

Read More

Constructors in C++

A constructor is a special method that is created when the object is created or defined. This particular method holds the same name as that of the object and it initializes the instance of the object whenever that object is created. The constructor also usually holds the initialization of the different declared member variables of its object.

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

Working with Pointers in C

A pointer is a variable that represents the location of a data item, such as a variable or an array element. Pointers are used frequently in C, as they have a number of useful applications. For example, pointers can be used to pass information back and forth between a function and its reference point. Pointers provide a way to return multiple data items from a function via function arguments to
be specified as arguments to a given function.

Read More