cout.setf(ios::showpos | ios::showpoint) and cout.setf(ios::showpoint, ios::showpos | ios::showpoint)
#include <iostream> using namespace std; int main(void){ cout.setf(ios::showpos | ios::showpoint); cout << 100 << endl; cout.setf(ios::showpoint, ios::showpos | ios::showpoint); cout << 100; }