From: Maurizio Loreti <loreti@pd.infn.it>
To: help-gcc@gnu.org
Subject: Re: c++: setting output format to hex??
Date: Sat, 04 Dec 1999 03:17:00 -0000 [thread overview]
Message-ID: <rmso1j56lg.fsf@mlinux.pd.infn.it> (raw)
In-Reply-To: <38482D56.A07629CE@advalvas.be>
Guy Van Den Bergh <guy.vandenbergh2@advalvas.be> writes:
> Hi there,
> I want to know how I can set the output format (for cout output stream)
> for integers to hex or oct.
#include <iostream>
using namespace std;
int main() {
cout << hex << 42 << endl;
}
> Thanx!
You are strongly encouraged to buy some FM and to RTFM.
--
Maurizio Loreti http://www.pd.infn.it/~loreti/mlo.html
Univ. of Padova, Dept. of Physics - Padova, Italy loreti@pd.infn.it
WARNING: multiple messages have this Message-ID
From: Maurizio Loreti <loreti@pd.infn.it>
To: help-gcc@gnu.org
Subject: Re: c++: setting output format to hex??
Date: Fri, 31 Dec 1999 22:24:00 -0000 [thread overview]
Message-ID: <rmso1j56lg.fsf@mlinux.pd.infn.it> (raw)
Message-ID: <19991231222400.6GDdtv7CBjmgDw6nZHj5vGVJwjWiVBlSknvpu4Z7UK0@z> (raw)
In-Reply-To: <38482D56.A07629CE@advalvas.be>
Guy Van Den Bergh <guy.vandenbergh2@advalvas.be> writes:
> Hi there,
> I want to know how I can set the output format (for cout output stream)
> for integers to hex or oct.
#include <iostream>
using namespace std;
int main() {
cout << hex << 42 << endl;
}
> Thanx!
You are strongly encouraged to buy some FM and to RTFM.
--
Maurizio Loreti http://www.pd.infn.it/~loreti/mlo.html
Univ. of Padova, Dept. of Physics - Padova, Italy loreti@pd.infn.it
next prev parent reply other threads:[~1999-12-04 3:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-03 13:02 Guy Van Den Bergh
1999-12-04 3:17 ` Maurizio Loreti [this message]
1999-12-31 22:24 ` Maurizio Loreti
1999-12-31 22:24 ` Guy Van Den Bergh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=rmso1j56lg.fsf@mlinux.pd.infn.it \
--to=loreti@pd.infn.it \
--cc=help-gcc@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).