C++

2D Vectors in C++ - A Practical Guide 2D Vectors — step-by-step Programming tutorial on Progressive Robot

2D Vectors in C++ – A Practical Guide 2D Vectors

Also referred to as vector of vectors, 2D vectors in C++ form the basis of creating matrices, tables, or any other structures, dynamically. Before arriving on the topic of 2D vectors in C++, it is advised to go through the tutorial of using single-dimensional [vectors in C++](/community/tutorials/vectors-in-c-plus-plus). Including the Vector header file It would be […]

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
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 the puts() function in C/C++ — step-by-step Programming tutorial on Progressive Robot

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

URL: https://www.progressiverobot.com/puts-function-c-plus-plus/ Introduction Hello reader! Today in this tutorial we are going to discuss about the vastly used puts() function in for both C and C++ programming languages. Even though the printf() and cout functions in both C and C++ are prominent for printing variables, numbers, lines, etc. they ultimately lack behind while printing strings […]

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