Mega Code Archive

 
Categories / C++ Tutorial / Development
 

Setiosflags(ios

#include <iostream> #include <iomanip> using namespace std; int main() {   cout << setiosflags(ios::showpos);   cout << setiosflags(ios::showbase);   cout << 123 << " " << hex << 123;   return 0; } +123 0x7b