Posts from C++

Shutdown and Restart a Computer using C++

By YANNAM SATYA AMRUTHA

In general, we can shut down and restart a computer by clicking the start menu or using shortcuts. We can also shut down and restart the computer using a simple code in C++. In thi.... Read More

The pipe ( | ) operator in C++

By Harsh Singh

The pipe operator (|) in C++ is also known as bitwise or operator. The “bitwise or” operator (or pipe operator) in C++ takes two numbers as operands and checks their co.... Read More

Convert vector to string in C++

By Harsh Singh

Given a vector, we are supposed to make a string containing all of its elements in C++. It will be a single string of vector elements. Example: Vector Elements: {“hello”.... Read More

C++ Array of list with Examples

By YANNAM SATYA AMRUTHA

In this article, we will discuss the array of lists and some examples in C++. Before going into the topic let’s first discuss what are arrays and lists in C++. Array and list.... Read More

for loop and nested for loop in C++

By HARI HARAN B

The for loop is one of the three fundamental looping statements provided by c++. The for loop is more structured than its other counterparts. In this article, we shall see about so.... Read More

Convert comma separated string to vector in C++

By Harsh Singh

Given a comma-separated string, we want to convert it to a vector in C++. Example: String: "Hey,there,Howare,You" Vector elements: "Hey" "There" "Howare" "You" First Approach: In t.... Read More

Random Tree generator using Prufer Sequence in C++

By Monjil Chakraborty

First, we need to understand the question and what is asked here. We are here provided with an integer N first. The task we have in our hands here is to create a Prufer Sequence, .... Read More

The if and else statements in C++

By HARI HARAN B

Suppose we may want to execute a particular block of code based on a specific condition and another block if the condition is false. This is where if-else statements are so importa.... Read More

Related Posts