How to implement flags?

Answer Posted / subeetha

C++ defines some format flags for standard input and
output, which can be manipulated with the flags(), setf(),
and unsetf() functions. For example,

cout.setf(ios::left);

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does return 0 do in c++?

584


Explain deep copy and a shallow copy?

618


Write a program to show polymorphism in C++?

638


Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?

1590


What is encapsulation in C++? Give an example.

592






What is the difference between ++ count and count ++?

591


Name four predefined macros.

600


What is the average salary of a c++ programmer?

550


What is the basic concept of c++?

582


Is c# written in c++?

528


What is the main function c++?

611


What c++ library is string in?

584


Is c++ a float?

612


List the advantages of inheritance.

647


Which of the following is evaluated first: a) && b) || c) !

1815