Senin, 03 Oktober 2016

what are manipulators in C++

  Manipulators   Manipulators are helper functions which can be used for formatting input and output data. The iosclass and iomanip.h header file has several pre-defined manipulators.   Below table lists out several pre-defined manipulators. The manipulators hex, oct, dec, ws, endl, and flush are defined in iostream.h. The manipulators setbase(), width(), fill(), etc., that require an argument are defined in iomanip.h. The width() function can be used in two ways as shown below:   int width() : Returns the current width setting.   int width(int) : Sets the specified width and returns the previous width setting.   The precision() function can be used in two ways as shown below:   int precision() : Returns the

The post what are manipulators in C++ appeared first on Coding Security.


what are manipulators in C++
read more

Tidak ada komentar:

Posting Komentar