Latest Posts From Vijaykrishna Ram

Namespace Cpp

Understanding Namespace in C++

A Namespace in C++, informally, is a named scope that we can use to organize our code logically. This will ensure that variables, functions, and classes with similar functionality are in the same scope. Not….

Exception Handling Cpp

Exception Handling in C++

In this article, we’ll take a look at performing Exception Handling in C++. Exception Handling is an important topic, especially in the context of Object-Oriented Programming. C++ is similar to Java, with the fact that….

Initialize Vector Cpp

Initialize a Vector in C++

In this article, we’ll take a look at some of the ways to initialize a vector in C++. There are a bunch of ways to do this, so we’ll go through each approach. Let’s get….

Smart Pointers Cpp

Smart Pointers in C++

In this article, we’ll take a look at how we can use Smart Pointers in C++. Smart Pointers are an abstract interface to actual pointers (also called raw pointers), but with the additional benefit of….

Initializer Lists Cpp

Initializer Lists in C++ – std::initializer_list

In this article, we’ll take a look at using initializer lists in C++ (std::initializer_list). Whenever you implement your own Class, you probably want a way to initialize objects directly, using a list type format (using….

Static Cast Cpp

Static Cast in C++ – static_cast() Method

In this article, we’ll take a look at using the Static Cast function in modern C++. We’ll also address some of the differences with respect to the other types of casts. For many programmers with….

Tokenize String Cpp

Tokenize a String in C++

In this article, we’ll take a look at how we can tokenize a C++ String. Other languages have a very simple solution, using string.split(). Unfortunately, native C++ does not support this method, so we’ll show….

Snprintf Cpp

C/C++ snprintf() – Usage Guide

In this article, we’ll understand the working and the usage of the snprintf() C++ function. The snprintf() function is used to write formatted output to a string. Let’s understand how we can use this function,….

Binary Search Tree

Binary Search Tree in C/C++

In this article, we’ll take a look at implementing a Binary Search Tree in C/C++. A Binary Search Tree(BST) is a Binary Tree in which every element of a left sub-tree is less than the….

Stringstream Cpp

C++ stringstream – Reference and Usage Guide

C++ stringstream is a stream class on strings. This allows us to take a string and treat it as if it were a stream object, like cin, or cout. Due to this, we can perform….

Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages