Skip to content

Tag Archives: cpp-input-output

In this article, we will discuss how to read a string after reading an integer. Program 1: Below is the program that inputs a string… Read More
Every program takes some data as input and generates processed data as an output following the familiar input process output cycle. It is essential to… Read More
In this article, we will discuss the unformatted Input/Output operations In C++. Using objects cin and cout for the input and the output of data… Read More
The cin object in C++ is used to accept the input from the standard input device i.e., keyboard. it is the instance of the class… Read More
The cout object in C++ is an object of class ostream. It is defined in iostream header file. It is used to display the output… Read More
The cin object in C++ is an object of class iostream. It is used to accept the input from the standard input device i.e. keyboard.… Read More
In this article, we will discuss the very basic and most common I/O operations required for C++ programming. C++ runs on lots of platforms like… Read More
There are two methods in which input can be taken in a more secure way: Do not display any content. Display a special character such… Read More
Given an integer N in form of string str consisting of more than 100 digits, the task is to store the value for performing an… Read More
Formatting in C In C language format specifiers are used to input and output. It is a way to tell the compiler what type of… Read More
The task is to write a program to print Hello World without using main() and semicolon. As we already know how to print Hello World… Read More
The setbase() method of iomaip library in C++ is used to set the ios library basefield flag based on the argument specified as the parameter… Read More
The setprecision() method of iomaip library in C++ is used to set the ios library floating point precision based on the precision specified as the… Read More
The setiosflags() method of iomanip library in C++ is used to set the ios library format flags specified as the parameter to this method.Syntax:   setiosflags… Read More
The setfill() method of iomaip library in C++ is used to set the ios library fill character based on the character specified as the parameter… Read More