Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) std::resetiosflags

 

std::resetiosflags is an STL stream manipulator to toggle a std::ios flag.

 

 

#include <iomanip>
#include <iostream>
int main ()
{
  std::cout
    << std::setiosflags(std::ios_base::showpoint)   << 1.0 << '\n'
    << std::resetiosflags(std::ios_base::showpoint) << 1.0 << '\n';
}

 

Screen output:

 

1.00000
1

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict

This page has been created by the tool CodeToHtml