C++

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
Convert String to Char Array and Char Array to String in C++ — step-by-step Programming tutorial on Progressive Robot

Convert String to Char Array and Char Array to String in C++

In this article, we will be focusing on the different ways to convert String to char array and char array to String in [C++](/community/tutorials/c-plus-plus). While dealing with String data, we may need to convert the string data items to character array and vice-versa. This tutorial will help you solve exactly that. Convert String to Char […]

Read more
Using sort() in C++ std Library — step-by-step Programming tutorial on Progressive Robot

Using sort() in C++ std Library

URL: https://www.progressiverobot.com/sort-in-c-plus-plus/ Introduction Hey there! Today we are going to discuss the sort() function in the std library in C++. For basics, Sorting is any process of ordering items systematically. These items could be elements of a sequence or any [data structure](/community/tutorials/data-structure-algorithms). In C++, the standard library provides a pre-defined and ready to use function […]

Read more
How to use the execvp() function in C/C++ — step-by-step Programming tutorial on Progressive Robot

How to use the execvp() function in C/C++

In this article, we'll take a look at using the execvp() function in C / C++. In UNIX, the execvp() function is very useful if you want to run another program using our C program. NOTE: This function is applicable only to UNIX based Operating Systems. It doesn't work on Windows Let's take a look […]

Read more
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
The exit() function in C++ — step-by-step Programming tutorial on Progressive Robot

The exit() function in C++

Introduction Today we'll learn about exit() in C++. We know we can break out of loops using the built-in break function in C++. Similarly, we can also break out of a whole C++ program using the exit() function. Think of a situation where you are to come to a conclusion in your program. You get […]

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
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
CHAT