Skip to main content

Posts

C++ Standard Template Library (STL) – Introduction

In this tutorial you will learn about what is STL in C++, what it provides and overview of all STL items. STL means Standard Template Library . STL is the most crafted libraries among all other libraries in C++. It is heart of C++. It includes containers, algorithms and iterators. C++ Standard Template Library (STL) What STL Provides? Standard Template Library provides Algorithms and Containers . Containers contain data and algorithms operate on the data which is in containers. The aim of object oriented language is combining algorithm and data into a class which is called object. STL goes opposite way of OOP language. It separates algorithms and data structures. Purpose of that is code reuse. We want one algorithm apply on different containers. And we want one container to use different algorithms. Containers have different interfaces from each other. So if we want to apply one algorithm on different containers, we need to provide different implementations for that. So if we have...

How to Exit Vim Editor?

In this article you will learn how to exit vim editor with and without saving. What is Vim? Vim is a text editor that is highly cofigurable and customizable. It was written by Bram Moolenaar and was first released publicly in 1991. It is used to create, open, read, write, delete text files. It is preinstalled in Unix, Linux OS like Ubuntu and MacOS. Vim is commonly called as Vi editor or programmer’s editor. It is a freeware and available for Windows, Unix, MacOS, Linux. Vi editor is an efficient editor compared to other text editors and is being continuously provided with new features. It includes plugin support which makes it a powerful tool for text editing of files of various formats. It supports almost all text formats and programming language files. One of the most important feature it provides is the multi level undo operation by which we can perform undo as many times as we want to which is restricted by a single undo in the Windows default text editor Notepad. It provides a...