* c++: setting output format to hex?? @ 1999-12-03 13:02 Guy Van Den Bergh 1999-12-04 3:17 ` Maurizio Loreti 1999-12-31 22:24 ` Guy Van Den Bergh 0 siblings, 2 replies; 4+ messages in thread From: Guy Van Den Bergh @ 1999-12-03 13:02 UTC (permalink / raw) To: help-gcc Hi there, I want to know how I can set the output format (for cout output stream) for integers to hex or oct. Thanx! ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++: setting output format to hex?? 1999-12-03 13:02 c++: setting output format to hex?? Guy Van Den Bergh @ 1999-12-04 3:17 ` Maurizio Loreti 1999-12-31 22:24 ` Maurizio Loreti 1999-12-31 22:24 ` Guy Van Den Bergh 1 sibling, 1 reply; 4+ messages in thread From: Maurizio Loreti @ 1999-12-04 3:17 UTC (permalink / raw) To: help-gcc 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++: setting output format to hex?? 1999-12-04 3:17 ` Maurizio Loreti @ 1999-12-31 22:24 ` Maurizio Loreti 0 siblings, 0 replies; 4+ messages in thread From: Maurizio Loreti @ 1999-12-31 22:24 UTC (permalink / raw) To: help-gcc 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* c++: setting output format to hex?? 1999-12-03 13:02 c++: setting output format to hex?? Guy Van Den Bergh 1999-12-04 3:17 ` Maurizio Loreti @ 1999-12-31 22:24 ` Guy Van Den Bergh 1 sibling, 0 replies; 4+ messages in thread From: Guy Van Den Bergh @ 1999-12-31 22:24 UTC (permalink / raw) To: help-gcc Hi there, I want to know how I can set the output format (for cout output stream) for integers to hex or oct. Thanx! ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1999-12-31 22:24 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 1999-12-03 13:02 c++: setting output format to hex?? Guy Van Den Bergh 1999-12-04 3:17 ` Maurizio Loreti 1999-12-31 22:24 ` Maurizio Loreti 1999-12-31 22:24 ` Guy Van Den Bergh
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).