help-gplusplus
[Top][All Lists]
Advanced

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

Re: setbase(2)


From: Ulrich Eckhardt
Subject: Re: setbase(2)
Date: Sun, 21 Nov 2004 15:16:41 +0100
User-agent: KNode/0.7.7

Rai Hardeep S. wrote:
> Is there any equivalent to setbase(2), i.e to take output in binary
> form. As such setbase() can accept 8, 10 and 16 argument.

Not GCC specific, but there are (IIRC) overloaded inserters/extractors in
std::bitset.

> I wish to take output in binary form.

I hope you mean that you want numbers to be formatted as sequences of '0'
and '1' characters, and not some kind of binary as opposed to textual.

Uli

-- 
http://gcc.gnu.org/faq.html
http://parashift.com/c++-faq-lite/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]