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

why is c++ called oops? Explain

780


What is a unnitialised pointer?

759


Is c better than c++?

825


What is an overflow error?

811


What is singleton class in c++?

776






What is friend class in c++ with example?

667


What are the advantages of pointers?

793


What are the different types of polymorphism in c++?

805


Does c++ support exception handling?

775


Difference between inline functions and macros?

746


How does class accomplish data hiding in c++?

894


What is name hiding in c++?

852


Why is c++ called oops?

771


What is the difference between public and private data members?

854


Describe private, protected and public – the differences and give examples.

795