#include //don't need #include using namespace std; int main() { int i = 10; ios_base::fmtflags save = cout.flags(); cout << i << "\n" << showpos << i << "\n" //printf("%+d", i) << hex << i << "\n" //printf("%x", i) << showbase << i << "\n" //printf("%#x", i) << uppercase << i << "\n" //printf("%#X", i) << nouppercase << noshowbase << noshowpos; cout.setf(save, ios_base::showpos | ios_base::showbase | ios_base::uppercase | ios_base::basefield); cout << i << "\n"; //same base and format as line 10 return EXIT_SUCCESS; }