Mega Code Archive

 
Categories / C++ Tutorial / Data Types
 

After setting the showpos and showpoint flags

#include <iostream> #include <iomanip> using namespace std; int main() {   cout << "Default format: " << 123.123456789 << endl;   cout << "Default: " << 10.0 << endl;   cout << "After setting the showpos and showpoint flags: ";   cout << showpos << showpoint << 10.0 << "\n\n";   return 0; }