Print Pretty

  • + 0 comments

    cout << left << hex << showbase << nouppercase << (long)A<< endl;

    cout << setw(0xf) << right << setfill('_') << showpos << setprecision(2) << fixed << B << endl;

    cout << scientific << uppercase << setprecision(9) << noshowpos << C << endl;

    HTH

    Thanks, --Sourav.