How to implement flags?
Answers were Sorted based on User's Feedback
Answer / 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 |
Define a nested class. Explain how it can be useful.
what is data abstraction in C++?
What are the five types of inheritance in C++?
What is input operator in c++?
How would you implement a substr() function that extracts a sub string from a given string?
Can you please explain the difference between using macro and inline functions?
Which software is best for programming?
What is scope of a variable? (LOLZ)
What is name hiding in c++?
How did c++ start?
What is the difference between map and hashmap in c++?
Why #include is used?