Reading and Displaying Boolean Value as TRUE and FALSE instead of 0 ans 1
It is used to sets the boolalpha format flag for the str stream. When the boolalpha format flag is set, bool values are inserted/extracted by their textual representation: either true or false, instead of integral values.
implamentation:
output:
No comments:
Post a Comment