Message-ID: <3870F8F6.3B10E12B@earthlink.net> From: Martin Ambuhl X-Mailer: Mozilla 4.7 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: iomanip: showbase doesn't work? References: <3870e271 DOT 18206021 AT news DOT netcologne DOT de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 50 NNTP-Posting-Host: 209.246.97.120 X-Complaints-To: abuse AT earthlink DOT net X-Trace: newsread1.prod.itd.earthlink.net 946927816 209.246.97.120 (Mon, 03 Jan 2000 11:30:16 PST) NNTP-Posting-Date: Mon, 03 Jan 2000 11:30:16 PST Organization: EarthLink Network, Inc. X-ELN-Date: Mon Jan 3 11:30:16 2000 X-ELN-Insert-Date: Mon Jan 3 11:30:16 2000 X-Posted-Path-Was: not-for-mail Date: Mon, 03 Jan 2000 19:30:16 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Peter Karp wrote: > > Hi DJGPP gurus :-) > > when I try to compile bsp.09.cpp: > > #include > #include > > using namespace std; > > int main() > { > cout << hex << showbase; > cout << setw(12) << 3 << setw(12) << 5; > return(0); > } Try: #include #include using namespace std; int main() { cout.setf(ios::showbase); cout << hex; cout << setw(12) << 3 << setw(12) << 5 << endl; // mha: required for defined behavior return 0; } -- Martin Ambuhl mambuhl AT earthlink DOT net What one knows is, in youth, of little moment; they know enough who know how to learn. - Henry Adams A thick skin is a gift from God. - Konrad Adenauer __________________________________________________________ Fight spam now! Get your free anti-spam service: http://www.brightmail.com