Re: C++ noshowbase ignored

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mike -- EMAIL IGNORED wrote, On 02/03/2009 02:47 PM:
In FC7, the line"

...
   cout << "a = 0x" << setfill('0') << hex << noshowbase <<
                     setw(8) << a << dec << setfill(' ') << endl;
...

results in:

a = 0x0x91a1218

Is there something I can do about this?


Mr. Obvious asked, "how 'bout changing the code like so:"
...
   cout << "a = " << setfill('0') << hex << noshowbase <<
                     setw(8) << a << dec << setfill(' ') << endl;
...

or for more pain
http://www.open-std.org/JTC1/sc22/wg21/docs/lwg-defects.html#183
cout << resetiosflags(ios_base::showbase)
????

--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux