From: Richard Dawe Newsgroups: comp.os.msdos.djgpp Subject: Re: displaying numbers in hexadecimal Date: Sat, 05 Oct 2002 18:31:56 +0100 Lines: 21 Message-ID: <3D9F220C.EEC5F@phekda.freeserve.co.uk> References: NNTP-Posting-Host: 62.136.65.32 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news5.svr.pol.co.uk 1033854236 17870 62.136.65.32 (5 Oct 2002 21:43:56 GMT) NNTP-Posting-Date: 5 Oct 2002 21:43:56 GMT X-Complaints-To: abuse AT theplanet DOT net X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i586) X-Accept-Language: de,fr To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello. John Smth wrote: > How can i get my program to display a number in hexadecimal form? For > example, in my program i have a line cout << 0x9 + 0x2 << "\n"; > the output is 11, but i need t to be 'B'. It was suggested to me to add > '<