C++

Sorting a Vector in C++ — step-by-step Programming tutorial on Progressive Robot

Sorting a Vector in C++

URL: https://www.progressiverobot.com/sorting-a-vector-in-c-plus-plus/ Introduction In this tutorial, we are going to focus on Sorting a Vector in C++. Sorting is one of the vastly performed operations in any programming language. Similarly, in C++ too, there are several algorithms following which we can sort any data structure. For [vectors](/community/tutorials/vectors-in-c-plus-plus), in particular, we can perform sorting operations in […]

Read more
3 Ways to Compare Strings in C++ — step-by-step Programming tutorial on Progressive Robot

3 Ways to Compare Strings in C++

Introduction In this article, you will learn methods to compare strings in C++. Strings in C++ can be compared using one of the following techniques: String strcmp() function built-in compare() function C++ Relational Operators (==, !=) 1. Using the String strcmp() function in C++ C++ String has built-in functions for manipulating data of String type. […]

Read more
String Concatenation in C++: 4 Ways To Concatenate Strings — step-by-step Programming tutorial on Progressive Robot

String Concatenation in C++: 4 Ways To Concatenate Strings

URL: https://www.progressiverobot.com/string-concatenation-in-c-plus-plus/ In this article, we will unveil the various ways of performing string concatenation in the [C++ language](/community/tutorials/c-plus-plus). This method can be used for various purposes while programming. But in general, the concept is the same as combining two strings from different locations and placing them together. Techniques of String Concatenation in C++ The […]

Read more
How to Create a Random Number Generator in C++ — step-by-step Programming tutorial on Progressive Robot

How to Create a Random Number Generator in C++

URL: https://www.progressiverobot.com/random-number-generator-c-plus-plus/ In this article, we'll go over the functions needed to create a random number generator in C++. In the world of computers, random numbers form an essential component to add the flavor of anonymity and security. A random number generator forms the backbone of creating pseudo-random numbers. The idea behind pseudo-random numbers is […]

Read more
Using the system("pause") command in C++ — step-by-step Programming tutorial on Progressive Robot

Using the system(“pause”) command in C++

URL: https://www.progressiverobot.com/system-pause-command-c-plus-plus/ In this article, we'll take a look at using the system("pause") command in C++. Before going through this article, note this the system("pause") command is _only_ available in Windows Systems. This means that you cannot use this from any Linux / Mac machine. The system() command Before going through the system("pause") command, let's […]

Read more
How To Implement a Sample Hash Table in C/C++ — step-by-step Programming tutorial on Progressive Robot

How To Implement a Sample Hash Table in C/C++

Introduction A hash table in C/C++ is a data structure that maps keys to values. A hash table uses a _hash function_ to compute indexes for a key. You can store the value at the appropriate location based on the hash table index. <!– –> The benefit of using a hash table is its very […]

Read more
Height of Binary Tree in C/C++ — step-by-step Programming tutorial on Progressive Robot

Height of Binary Tree in C/C++

The height of a Binary Tree is defined as the maximum depth of any leaf node from the root node. That is, it is the length of the longest path from the root node to any leaf node. Let us consider the below Binary Tree. Since the leaf nodes corresponding to the maximum depth are […]

Read more
Understanding C++ String Array — step-by-step Programming tutorial on Progressive Robot

Understanding C++ String Array

URL: https://www.progressiverobot.com/string-array-in-c-plus-plus/ Hey, Folks! So, as programmers, we often deal with Arrays of all data types. We'll cover C++ string array in today's article. Ways to declare an C++ String Array 1. The String keyword to Create String Array in C++ [C++](/community/tutorials/c-plus-plus) provides us with 'string' keyword to declare and manipulate data in a String […]

Read more
CHAT