cout flags: showpoint, showpos : cout flag status « Console « C++






cout flags: showpoint, showpos

cout flags: showpoint, showpos


#include <iostream>
using namespace std;
int main( )
{
  cout.setf(ios::showpoint | ios::showpos, ios::showpoint);
  cout << 102340.0; 
  return 0;
}


           
       








Related examples in the same category

1.Using Manipulators to Format I/OUsing Manipulators to Format I/O
2.Store cout flags, set to new ones and restoreStore cout flags, set to new ones and restore
3.Displays the status of the format flags.Displays the status of the format flags.