
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 7197 Articles for C++

13K+ Views
To solve some problems effectively, it's important to arrange the data items in the correct sequence. One of the most popular arranging problems is the element sorting problem. This article will demonstrate how to arrange array members in C++ in ascending order (according to rising values). To arrange either numerical or non-numerical elements in a specific order, a wide variety of sorting algorithms are available in this field. Only two straightforward sorting techniques will be covered in this article. the selection sort and the bubble sort. Let's examine each one individually using appropriate techniques and C++ implementation code. Sort array ... Read More

2K+ Views
Arranging data items in a proper form is an essential task while solving some problems in an efficient way. The element sorting problem is one of the most commonly discussed arranging problem. In this article we will see how to arrange the array elements in descending order (decreasing order of their values) in C++. There are many different sorting algorithms present in this domain to sort numeric or nonnumeric elements in a given order. In this article we will see only two simple methods of sorting. The bubble sort and the selection sort. Let us see them one by one ... Read More

2K+ Views
Sets in C++ re containers that contain unique values of a specific type. Arrays or the array container in std C++ is a fixed-size container that contains elements of a specific size. Arrays are like vectors, but the main difference is that arrays are of a fixed size whereas vectors can be dynamic. The array container in C++ is a wrapper for the standard arrays that are available in both C and C++. There is a problem in this conversion though, std arrays do not have support for the common insertion methods that are available with the other containers. So, ... Read More

2K+ Views
Lists in C++ are containers the same as vectors, but list implementation is based on doubly linked lists compared to the array implementation of vectors. Lists generally do not contain elements in contiguous locations, the elements of a list are distributed throughout the memory. Lists offer the same constant time operations anywhere in it, that is the main feature of using lists. Sets on the other hand are containers that contain unique values of a certain type and all the elements are sorted in ascending order. The two containers are different, but there are various ways to convert a list ... Read More

4K+ Views
Displaying star patterns in different shapes, like pyramids, squares, and diamonds, is a common part of basic programming and logic development. We faced various problems involving stars and numerical patterns as we studied looping statements in programming. This article will demonstrate how to print an X or a cross using stars. We will see two methods for the same. First one is little bit complicated but the next method is much efficient. X Star Pattern (Using two sets of blank spaces) * * * * * ... Read More

1K+ Views
Displaying star patterns in different formats like pyramids, squares, and diamonds is very common in fundamental programming and logic building. We have seen several stars and number pattern problems while learning looping statements in programming. In this article, we will see how to print a hollow right triangle star pattern in C++. In this program, we take the line number n this will create a star pattern for n number of lines. Let us see the example for the same. Hollow Right Star Pattern * ... Read More

2K+ Views
There are some data structures called dictionaries that are available in various computer languages. A particular form of quicker data structure that stores data based on keys and values is a dictionary. It keeps the key-value pair there so that certain components can be quickly searched by the keys in virtually real-time. The dictionary-like data structure is contained in the C++ STL language standard. This data structure is known by the name "map." The map generates a pair of keys and values of any type (the type must be defined before compilation as we are using C++). In this section, ... Read More

6K+ Views
In different programming languages, there are some data structures available that are known as dictionaries. The dictionaries are a special kind of faster data structure that stores data based on keys and values. It stores the key-value pair into it so that some elements can easily be searched in almost constant time by the keys. In C++, the dictionary−like data structure is present in C++ STL. The name of this data structure is named as ‘map’. The map creates a pair of keys and values of any type (since we are using C++, the type must be defined before compilation). ... Read More

3K+ Views
Many computer languages provide dictionaries, which are a type of data structure. A dictionary is one type of faster data structure that stores data based on keys and values. It retains the key−value combination there so that the keys can easily search for certain components in almost real time. The C++ STL language standard includes a dictionaries−like data structure. The term "map" is used to describe this data structure. The map creates a pair of keys and values of any type (since we are using C++, the type must be defined before compilation). This section will demonstrate how to update ... Read More

1K+ Views
As a form of data structure, dictionaries are a common choice in different computer languages. One kind of quicker data structure for storing data with keys and values is a dictionary. For the keys to quickly search for certain components in almost real-time, it retains the key-value combination there. A data structure that resembles dictionaries is part of the C++ STL language standard. This data structure is referred to as a "map". The map generates a pair of keys and values of any type (the type must be defined before compilation as we are using C++). This section will demonstrate ... Read More