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 is meant by const_cast?

642


Who calls main function?

579


What is difference between c++ 11 and c++ 14?

567


What is the best free c++ compiler for windows?

581


What do you mean by delegate? Can a user retain delegates?

516






What is ofstream c++?

581


When should I use unitbuf flag?

577


the maximum length of a character constant can be a) 2 b) 1 c) 8

593


Declare a class vehicle and make it an abstract data type.

531


What is an arraylist c++?

679


What is a tuple c++?

536


What is the type of 'this' pointer?

589


How to implement is-a and has-a class relationships?

576


What's the order in which the local objects are destructed?

830


What is a forward referencing and when should it be used?

572