C++ Vectors – std::vector – Containers Library

Vectors are sequence container (same as dynamic arrays) which resizes itself automatically. The size changes (i.e. vector can shrink or expand as needed at run time) when an element is inserted or deleted, with their storage being handled automatically by the...

File Handling in C++

This tutorial will teach you how to read and write a file using C++. The information or data stored under a specific name on a storage device, is called a file. In C++, files are referred to as flow of streams (data) into and out of programs. Streams are basis data...

Ternary Operator in C++

In C++, ternary operator allows executing different code depending on the value of a condition, and the result of the expression is the result of the executed code. The ternary operator uses 3 operands. It evaluates a condition and after that chooses one of its two...

Polymorphism in C++

Simply speaking, polymorphism is the ability of something to be displayed in multiple forms. Let’s take a real life scenario; a person at the same time can perform several duties as per demand, in the particular scenario. Such as, a man at a same time can serve as a...

The C++ Modulus Operator

Introduction to Modulus When we divide two integer numbers we will have an equation that looks like the following: A/B = Q Remainder R where A is the dividend B is the divisor Q is the quotient R is the remainder Sometimes, we are only interested in what the remainder...

Introduction to C++ – Lecture Notes

This post contains lecture notes of “Introduction to C++” course which is taught at MIT OpenCourseWare. This is introductory course to the C++ programming language. Anyone with little or no programming experience can equally take this course. However,...

An Introduction to C++

The ACM Student Magazine has a series of courses to teach C++ and java called “Objective Viewpoint”. The tutorials touch on many aspects of object-orientation. The word object has surfaced in more ways than you can count. There are OOPLs (Object-Oriented...

C++ Operator Overloading Guidelines

Google Code University website provides tutorials and sample course content so CS students and educators can learn more about current computing technologies and paradigms. In particular, this content is Creative Commons licensed which makes it easy for CS educators to...

Concurrency in C++ – University of Waterloo

Google Code University website provides tutorials and sample course content so CS students and educators can learn more about current computing technologies and paradigms. In particular, this content is Creative Commons licensed which makes it easy for CS educators to...

More on Inheritance in C++

In Object Oriented Programming Inheritance is the process by which objects of one class acquire the properties and functionality of objects of another class. It supports the concept of hierarchical classification. For example, the bird robin is a part of the class...

Inheritance in C++

In Object Oriented Programming Inheritance is the process by which objects of one class acquire the properties and functionality of objects of another class. It supports the concept of hierarchical classification. For example, the bird robin is a part of the class...

C++ Memory Management

By George Belotsky Published on Linux DevCenter (http://www.linuxdevcenter.com/) http://www.linuxdevcenter.com/pub/a/linux/2003/05/08/cpp_mm-1.html Everyone knows that memory management is a difficult and dangerous chore in C++. This series of three articles will show...
Page 1 of 3123