#include <iostream>
using namespace std;

int main()
{
   int* p = new int;
   cout.setf(ios::uppercase | ios::showbase);
   // Output of pointer variables not affected by
   // manipulator settings in gcc 3.3.3
   cout << "local " << &p << ", free store " << p << endl;
   // manipulators do affect other output
   cout << 127 << " " << 255<< endl;
   // note that `noshowbase' is not a member of type
   //`std::basic_ios<char,std::char_traits<char> >'
   // in gcc 3.3.3
   cout.unsetf(ios::dec | ios::showbase);
   cout.setf(ios::hex);
   cout << 127 << " " << 255<< endl;
   // alternate form
   cout << std::dec << 127 << " " << 255<< endl;
   return 0;
}
