Skip to content

Category Archives: C++ Programs

In C++ input and output are performed in the form of a sequence of bytes or more commonly known as streams. cerr and clog both… Read More
An array in C/C++ or be it in any programming language is a collection of similar data items stored at contiguous memory locations and elements… Read More
Member Function: It is a function that can be declared as members of a class. It is usually declared inside the class definition and works… Read More
Switch case statements are a substitute for long if statements that compare a variable to several integral values. The switch statement is a multiway branch… Read More
Given an array arr[ ] of size N and an integer p, the task is to find maximum possible value of rightmost element of array… Read More
Given three variables that represent the hours, minutes, and the second, the task is to write a C++ program to normalize/convert the given time into… Read More
Prerequisite : Full AdderWe are given three inputs of Full Adder A, B,C-IN. The task is to implement the Full Adder circuit and Print output… Read More
In computer graphic, C++ provide graphic.h through which objects can be created and by using this objects flying bird can be created in C++ program.… Read More
In C++, we can make operators to work for user-defined classes. This means C++ has the ability to provide the operators with a special meaning… Read More
In C graphics, the graphics.h functions are used to draw different shapes like circles, rectangles, etc, display text(any message) in a different format (different fonts… Read More
Float is a 32 bit IEEE 754 single-precision Floating Point Number 1 bit for the sign, (8 bits for the exponent, and 23* for the… Read More
All variables use data type during declarations to restrict the type of data to be stored. Therefore, we can say that data types are used… Read More
An array is a collection of items stored at contiguous memory locations. It is to store multiple items of the same type together. This makes… Read More
The linked list stores data in sequential storage, like arrays. Though the data are stored sequentially, the memory locations are not contiguous.Unlike an array, the… Read More
In this article, the task is to create a 2- player cricket game where Player 1 is the user operating the program and Player 2… Read More