I have tried this
cout. setf(ios::oct, ios::basefield) ;
cout << 79 << endl;
It works but using manipulator setiosflags
cout << setiosflags (ios::oct) << 79 << endl;
It doesn't work, there's still 79 printed at the screen.
Although I heard setiosflags is the alternative of `setf.
Then how to print out the decimal number as octal number using setiosflags?