C++

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
How to use the string find() in C++ — step-by-step Programming tutorial on Progressive Robot

How to use the string find() in C++

URL: https://www.progressiverobot.com/string-find-c-plus-plus/ In this article, we'll take a look at how we can use String find() in C++. If we want to check whether a string contains another string, the std::string.find() method is very useful. Let's understand how we can use this method, with some examples! Syntax of String find() in C++ This method belongs […]

Read more
Fractional Knapsack Using C++ — step-by-step Programming tutorial on Progressive Robot

Fractional Knapsack Using C++

In this article, we will learn to solve the fractional knapsack problem using C++. We will start by looking at the problem statement and then move to the solution. This problem is one of many popular classical problems. It is fairly different than its sibling 0-1 knapsack and [0-N knapsack](/community/tutorials/solving-0-n-knapsack-problem-in-cpp). This is a greedy algorithm […]

Read more
Using the getch() function in C/C++ — step-by-step Programming tutorial on Progressive Robot

Using the getch() function in C/C++

In this article, we'll take a look at using the getch() function in C/C++. The getch() function is very useful if you want to read a character input from the keyboard. While this is not a part of the C standard, this is still a POSIX C function. So, we can still use this function […]

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 use std::getline() in C++? — step-by-step Programming tutorial on Progressive Robot

How to use std::getline() in C++?

In this article, we'll take a look at using the function std::getline() in C++. This is a very handy function if you want to read characters from an input stream. Let's find out how we can use this properly, using some illustrative examples. Basic Syntax of std::getline() in C++ This function reads characters from an […]

Read more
CHAT